Changeset View
Changeset View
Standalone View
Standalone View
src/resultset_iterator.cpp
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 65 | } else { | |||
---|---|---|---|---|---|
67 | currentValue = make_optional(std::move(value)); | 67 | currentValue = make_optional(std::move(value)); | ||
68 | 68 | | |||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | friend void swap(ResultSet_IteratorPrivate &left, | 72 | friend void swap(ResultSet_IteratorPrivate &left, | ||
73 | ResultSet_IteratorPrivate &right) | 73 | ResultSet_IteratorPrivate &right) | ||
74 | { | 74 | { | ||
75 | using namespace std; | 75 | std::swap(left.resultSet, right.resultSet); | ||
76 | swap(left.resultSet, right.resultSet); | 76 | std::swap(left.currentRow, right.currentRow); | ||
77 | swap(left.currentRow, right.currentRow); | 77 | std::swap(left.currentValue, right.currentValue); | ||
78 | swap(left.currentValue, right.currentValue); | | |||
79 | } | 78 | } | ||
80 | 79 | | |||
81 | bool operator==(const ResultSet_IteratorPrivate &other) const | 80 | bool operator==(const ResultSet_IteratorPrivate &other) const | ||
82 | { | 81 | { | ||
83 | bool thisValid = currentValue.is_initialized(); | 82 | bool thisValid = currentValue.is_initialized(); | ||
84 | bool otherValid = other.currentValue.is_initialized(); | 83 | bool otherValid = other.currentValue.is_initialized(); | ||
85 | 84 | | |||
86 | return | 85 | return | ||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |