C++ Library Extensions 2022.12.09
To help learn modern C++ programming
cpg::functional::recursor< T > Struct Template Reference

#include <cpg_functional.hpp>

Collaboration diagram for cpg::functional::recursor< T >:
[legend]

Public Member Functions

 recursor (T v)
 
template<typename FuncType >
requires requires { std::invoke(func, this->value); }
recursoroperator| (FuncType &&func)
 

Public Attributes

value
 

Detailed Description

template<typename T>
struct cpg::functional::recursor< T >

Definition at line 21 of file cpg_functional.hpp.

Constructor & Destructor Documentation

◆ recursor()

template<typename T >
cpg::functional::recursor< T >::recursor ( v)
inline

Definition at line 24 of file cpg_functional.hpp.

Member Function Documentation

◆ operator|()

template<typename T >
template<typename FuncType >
requires requires { std::invoke(func, this->value); }
recursor & cpg::functional::recursor< T >::operator| ( FuncType &&  func)
inline

Definition at line 27 of file cpg_functional.hpp.

Member Data Documentation

◆ value

template<typename T >
T cpg::functional::recursor< T >::value

Definition at line 23 of file cpg_functional.hpp.


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