rangeless::fn
rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen > Struct Template Reference

#include <fn.hpp>

Public Types

using inp_t = typename InGen::value_type
 
using value_type = typename std::conditional< std::is_same< inp_t, char >::value, std::string, std::vector< inp_t > >::type
 

Public Member Functions

void recycle (value_type &grbg)
 
auto operator() () -> maybe< value_type >
 

Public Attributes

InGen gen
 
const F key_fn
 
const BinaryPred pred2
 
value_type next
 
value_type garbage
 

Detailed Description

template<typename F, typename BinaryPred = impl::eq>
template<typename InGen>
struct rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >

Definition at line 2674 of file fn.hpp.

Member Typedef Documentation

◆ inp_t

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
using rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::inp_t = typename InGen::value_type

Definition at line 2680 of file fn.hpp.

◆ value_type

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
using rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::value_type = typename std::conditional< std::is_same<inp_t, char>::value, std::string, std::vector<inp_t> >::type

Definition at line 2685 of file fn.hpp.

Member Function Documentation

◆ operator()()

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
auto rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::operator() ( ) -> maybe<value_type>
inline

Definition at line 2702 of file fn.hpp.

◆ recycle()

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
void rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::recycle ( value_type grbg)
inline

Definition at line 2697 of file fn.hpp.

Member Data Documentation

◆ garbage

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
value_type rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::garbage

Definition at line 2691 of file fn.hpp.

◆ gen

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
InGen rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::gen

Definition at line 2676 of file fn.hpp.

◆ key_fn

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
const F rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::key_fn

Definition at line 2677 of file fn.hpp.

◆ next

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
value_type rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::next

Definition at line 2687 of file fn.hpp.

◆ pred2

template<typename F , typename BinaryPred = impl::eq>
template<typename InGen >
const BinaryPred rangeless::fn::impl::group_adjacent_by< F, BinaryPred >::gen< InGen >::pred2

Definition at line 2678 of file fn.hpp.


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