Home
last modified time | relevance | path

Searched refs:iter_pair (Results 1 – 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
Dfor-range-examples.cpp93 struct iter_pair { struct
95 iter_pair(T begin, T end) : begin_(begin), end_(end) {} in iter_pair() function
97 template<typename T> T begin(iter_pair<T> p) { return p.begin_; } in begin()
98 template<typename T> T end(iter_pair<T> p) { return p.end_; } in end()
112 auto map(const F &f, T &t) -> iter_pair<map_iter<F, decltype(t.begin())>> { in map()
114 return iter_pair<iter>(iter(f, t.begin()), iter(f, t.end())); in map()