rangeless::fn
rangeless::fn::impl::adapt< F >::gen< InGen > Struct Template Reference

#include <fn.hpp>

Classes

struct  gen_wr
 

Public Types

using inp_t = typename InGen::value_type
 
using value_type = decltype(fn(gen_wr{ nullptr }))
 

Public Member Functions

void next ()
 
auto operator() () -> maybe< value_type >
 

Public Attributes

InGen in_gen
 
fn
 
maybe< inp_tinp
 
bool started
 

Detailed Description

template<typename F>
template<typename InGen>
struct rangeless::fn::impl::adapt< F >::gen< InGen >

Definition at line 1728 of file fn.hpp.

Member Typedef Documentation

◆ inp_t

template<typename F >
template<typename InGen >
using rangeless::fn::impl::adapt< F >::gen< InGen >::inp_t = typename InGen::value_type

Definition at line 1733 of file fn.hpp.

◆ value_type

template<typename F >
template<typename InGen >
using rangeless::fn::impl::adapt< F >::gen< InGen >::value_type = decltype(fn(gen_wr{ nullptr }))

Definition at line 1770 of file fn.hpp.

Member Function Documentation

◆ next()

template<typename F >
template<typename InGen >
void rangeless::fn::impl::adapt< F >::gen< InGen >::next ( )
inline

Definition at line 1765 of file fn.hpp.

◆ operator()()

template<typename F >
template<typename InGen >
auto rangeless::fn::impl::adapt< F >::gen< InGen >::operator() ( ) -> maybe<value_type>
inline

Definition at line 1772 of file fn.hpp.

Member Data Documentation

◆ fn

template<typename F >
template<typename InGen >
F rangeless::fn::impl::adapt< F >::gen< InGen >::fn

Definition at line 1731 of file fn.hpp.

◆ in_gen

template<typename F >
template<typename InGen >
InGen rangeless::fn::impl::adapt< F >::gen< InGen >::in_gen

Definition at line 1730 of file fn.hpp.

◆ inp

template<typename F >
template<typename InGen >
maybe<inp_t> rangeless::fn::impl::adapt< F >::gen< InGen >::inp

Definition at line 1735 of file fn.hpp.

◆ started

template<typename F >
template<typename InGen >
bool rangeless::fn::impl::adapt< F >::gen< InGen >::started

Definition at line 1736 of file fn.hpp.


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