rangeless::fn
to_vector/to_seq

Functions

impl::to_vector rangeless::fn::to_vector ()
 Move elements of an Iterable to std::vector. More...
 
impl::to_seq rangeless::fn::to_seq ()
 Wrap an Iterable, taken by value, as seq yielding elements by-move. More...
 
template<typename Container >
impl::to< Container > rangeless::fn::to (Container dest)
 e.g. auto set_of_ints = fn::seq(...) % ... % fn::to(std::set<int>{}); More...
 
impl::counts rangeless::fn::counts ()
 return map: value_type -> size_t More...
 

Detailed Description

Function Documentation

◆ counts()

impl::counts rangeless::fn::counts ( )
inline

return map: value_type -> size_t

Definition at line 3482 of file fn.hpp.

◆ to()

template<typename Container >
impl::to<Container> rangeless::fn::to ( Container  dest)

e.g. auto set_of_ints = fn::seq(...) % ... % fn::to(std::set<int>{});

Definition at line 3476 of file fn.hpp.

◆ to_seq()

impl::to_seq rangeless::fn::to_seq ( )
inline

Wrap an Iterable, taken by value, as seq yielding elements by-move.

This is a dual of to_vector. It can be used to adapt your own InputRange as seq, but it can also be used to wrap a container to force lazy evaluation e.g. std::move(container) % fn::to_seq() % fn::group_adjacent_by(key_fn) % fn::take_first()

Definition at line 3469 of file fn.hpp.

◆ to_vector()

impl::to_vector rangeless::fn::to_vector ( )
inline

Move elements of an Iterable to std::vector.

Definition at line 3459 of file fn.hpp.