#include <fn.hpp>
Classes | |
class | iterator |
Public Types | |
using | value_type = typename Gen::value_type |
Public Member Functions | |
seq (Gen gen) | |
template<typename OtherGen > | |
seq (seq< OtherGen > other) | |
seq (const seq &)=delete | |
seq & | operator= (const seq &)=delete |
seq (seq &&)=default | |
seq & | operator= (seq &&)=default |
iterator | begin () |
seq & | set_resumable (bool res=true) |
Gen & | get_gen () |
const Gen & | get_gen () const |
operator std::vector< value_type > () && | |
Static Public Member Functions | |
static iterator | end () |
Friends | |
class | iterator |
template<typename U > | |
class | seq |
Single-pass InputRange-adapter for nullary generators.
using rangeless::fn::impl::seq< Gen >::value_type = typename Gen::value_type |
|
inline |
|
inline |
|
delete |
|
default |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
delete |
|
default |
|
inline |
By default, calling begin() a second time will throw, because the default expectation is that begin() will restart from the beginning, which does not hold with seq, or any input-range for that matter. This may be suppressed with .resumable(true), making it explicit that the user-code is aware that begin() will resume from the current state.