Functions | |
template<typename P > | |
impl::take_while< P > | rangeless::fn::take_while (P pred) |
Yield elements until pred evaluates to false. More... | |
impl::take_while< impl::call_count_lt > | rangeless::fn::take_first (size_t n=1) |
Yield first n elements. More... | |
impl::take_last | rangeless::fn::take_last (size_t n=1) |
Yield last n elements. More... | |
template<typename P > | |
impl::drop_while< P > | rangeless::fn::drop_while (P pred) |
Drop elements until pred evaluates to false. More... | |
impl::drop_while< impl::call_count_lt > | rangeless::fn::drop_first (size_t n=1) |
Drop first n elements. More... | |
impl::drop_last | rangeless::fn::drop_last (size_t n=1) |
Drop last n elements. More... | |
template<typename P > | |
impl::where< P > | rangeless::fn::where (P pred) |
Filter elements. More... | |
template<typename SortedForwardRange , typename F > | |
impl::where< impl::in_sorted_by< SortedForwardRange, F > > | rangeless::fn::where_in_sorted_by (const SortedForwardRange &r, F key_fn) |
template<typename SortedForwardRange > | |
impl::where< impl::in_sorted_by< SortedForwardRange, by::identity > > | rangeless::fn::where_in_sorted (const SortedForwardRange &r) |
Intersect with a sorted range. More... | |
template<typename SortedForwardRange , typename F > | |
impl::where< impl::in_sorted_by< SortedForwardRange, F > > | rangeless::fn::where_not_in_sorted_by (const SortedForwardRange &r, F key_fn) |
template<typename SortedForwardRange > | |
impl::where< impl::in_sorted_by< SortedForwardRange, by::identity > > | rangeless::fn::where_not_in_sorted (const SortedForwardRange &r) |
Subtract a sorted range. More... | |
template<typename F > | |
impl::where_max_by< F > | rangeless::fn::where_max_by (F key_fn) |
Filter elements to those having maximum value of fn. More... | |
impl::where_max_by< by::identity > | rangeless::fn::where_max () |
template<typename F > | |
impl::where_max_by< F > | rangeless::fn::where_min_by (F key_fn) |
impl::where_max_by< by::identity > | rangeless::fn::where_min () |
template<typename Pred > | |
impl::exists_where< Pred > | rangeless::fn::exists_where (Pred p) |
|
inline |
|
inline |
impl::drop_while<P> rangeless::fn::drop_while | ( | P | pred | ) |
impl::exists_where<Pred> rangeless::fn::exists_where | ( | Pred | p | ) |
|
inline |
|
inline |
impl::take_while<P> rangeless::fn::take_while | ( | P | pred | ) |
impl::where<P> rangeless::fn::where | ( | P | pred | ) |
Filter elements.
Returns a unary function-object.
impl::where<impl::in_sorted_by<SortedForwardRange, by::identity> > rangeless::fn::where_in_sorted | ( | const SortedForwardRange & | r | ) |
impl::where<impl::in_sorted_by<SortedForwardRange, F> > rangeless::fn::where_in_sorted_by | ( | const SortedForwardRange & | r, |
F | key_fn | ||
) |
where_in_sorted
|
inline |
impl::where_max_by<F> rangeless::fn::where_max_by | ( | F | key_fn | ) |
Filter elements to those having maximum value of fn.
Buffering space requirements for seq
: O(k)
, where k
= maximum number of max-elements in a prefix of seq over all prefixes of seq. e.g.
[1,0,1,1,0,1,1,9]: k = 5
[1,3,1,1,3,1,1,9]: k = 2
|
inline |
impl::where_max_by<F> rangeless::fn::where_min_by | ( | F | key_fn | ) |
Filter elements to those having maximum value of fn.
impl::where<impl::in_sorted_by<SortedForwardRange, by::identity> > rangeless::fn::where_not_in_sorted | ( | const SortedForwardRange & | r | ) |
impl::where<impl::in_sorted_by<SortedForwardRange, F> > rangeless::fn::where_not_in_sorted_by | ( | const SortedForwardRange & | r, |
F | key_fn | ||
) |
where_not_in_sorted