rangeless::fn
rangeless::fn::end_seq Struct Reference

Return fn::end_seq() from input-range generator function to signal end-of-inputs. More...

#include <fn.hpp>

Classes

struct  exception
 

Public Member Functions

 end_seq ()
 
template<typename T >
 operator T () const
 

Detailed Description

Return fn::end_seq() from input-range generator function to signal end-of-inputs.

fn::seq([]{ ... }) % ... // as input-range from a nullary invokable
std::move(vec) % ... // pass by-move
vec % ... // pass by-copy
fn::from(vec) % ... // as view yielding elements by-move (or copy-view, if vec is const)
fn::cfrom(vec) % ... // as const view yielding elements by-copy (regardless of whether vec is const)
fn::refs(vec) % ... // as seq yielding reference-wrappers

This throws fn::end_seq::exception on construction, and is interpreted internally as end-of-inputs. This exception does not propagate outside of the API's boundaries.

Definition at line 281 of file fn.hpp.

Constructor & Destructor Documentation

◆ end_seq()

rangeless::fn::end_seq::end_seq ( )
inline

Definition at line 322 of file fn.hpp.

Member Function Documentation

◆ operator T()

template<typename T >
rangeless::fn::end_seq::operator T ( ) const
inline

Definition at line 335 of file fn.hpp.


The documentation for this struct was generated from the following file: