10 template<
typename Container>
19 : it(begin), other(begin), end(end) {
20 if (other != end) ++
other;
21 if (other != end) ++
other;
35 bool exhausted =
false;
39 cerr <<
"Are we exhausted? " << exhausted <<
endl;
43 if (
this == &rhs)
return true;
55 typedef std::pair<eo_iterator, eo_iterator>
eo_range;
77 for (
auto it = its.first; it != its.second; ++it) {
eo_range make_every_other(IntVector::iterator begin, IntVector::iterator end)
GeneratorIter< EOIV, int > eo_iterator
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Container::value_type value_type
EveryOther< IntVector > EOIV
std::vector< int > IntVector
EveryOther(const_iterator begin, const_iterator end)
Container::const_iterator const_iterator
bool operator==(const EveryOther &rhs) const
double distance(double x1, double y1, double z1, double x2, double y2, double z2)
std::vector< int > IntVector
std::pair< eo_iterator, eo_iterator > eo_range
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Container::iterator iterator
QTextStream & endl(QTextStream &s)