Home
last modified time | relevance | path

Searched defs:linq_take_cursor (Results 1 – 1 of 1) sorted by relevance

/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dlinq_take.hpp12 struct linq_take_cursor struct
14 typedef typename InnerCursor::element_type element_type;
15 typedef typename InnerCursor::reference_type reference_type;
16 typedef typename InnerCursor::cursor_category cursor_category;
18 linq_take_cursor(const InnerCursor& cur, std::size_t rem) : cur(cur), rem(rem) {} in linq_take_cursor() function
20 void forget() { cur.forget(); } in forget()
21 bool empty() const { return cur.empty() || rem == 0; } in empty()
22 void inc() { cur.inc(); --rem; } in inc()
23 reference_type get() const { return cur.get(); } in get()
25 bool atbegin() const { return cur.atbegin(); } in atbegin()
[all …]