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

#include <fn.hpp>

Public Types

using value_type = typename InGen::value_type
 
using key_t = typename std::decay< decltype(key_fn(*gen()))>::type
 
using seen_t = std::map< key_t, bool >
 

Public Member Functions

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

Public Attributes

InGen gen
 
const F key_fn
 
seen_t seen
 

Detailed Description

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

Definition at line 3128 of file fn.hpp.

Member Typedef Documentation

◆ key_t

template<typename F >
template<typename InGen >
using rangeless::fn::impl::unique_all_by< F >::gen< InGen >::key_t = typename std::decay<decltype(key_fn(*gen()))>::type

Definition at line 3135 of file fn.hpp.

◆ seen_t

template<typename F >
template<typename InGen >
using rangeless::fn::impl::unique_all_by< F >::gen< InGen >::seen_t = std::map<key_t, bool>

Definition at line 3145 of file fn.hpp.

◆ value_type

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

Definition at line 3133 of file fn.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 3151 of file fn.hpp.

Member Data Documentation

◆ gen

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

Definition at line 3130 of file fn.hpp.

◆ key_fn

template<typename F >
template<typename InGen >
const F rangeless::fn::impl::unique_all_by< F >::gen< InGen >::key_fn

Definition at line 3131 of file fn.hpp.

◆ seen

template<typename F >
template<typename InGen >
seen_t rangeless::fn::impl::unique_all_by< F >::gen< InGen >::seen

Definition at line 3149 of file fn.hpp.


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