C++ Library Extensions 2022.12.09
To help learn modern C++ programming
30-visit.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 30-visit.cpp:

Go to the source code of this file.

Classes

struct  tpf::types::is_pair_type_st< Type >
 
struct  tpf::types::is_pair_type_st< std::pair< Type_1, Type_2 > >
 
struct  tpf::types::is_variant_type_st< Type >
 
struct  tpf::types::is_variant_type_st< std::variant< Types... > >
 
struct  tpf::types::compile_time_loop< StartIndex, EndIndex >
 
struct  tpf::types::overloaded< VisitorTypes >
 

Namespaces

namespace  tpf
 Includes subnamespace conversion.
 
namespace  tpf::types
 Type to string name conversions are defined.
 

Functions

template<typename VisitorType , typename VariantType >
enable_if_variant_t< VariantType > tpf::types::visit (VisitorType &&visitor, VariantType &&vt)
 
template<typename VisitorType , typename PairType >
enable_if_pair_t< PairType > tpf::types::visit (VisitorType &&visitor, PairType &&pair)
 
template<typename... VisitorTypes>
 tpf::types::overloaded (VisitorTypes...) -> overloaded< VisitorTypes... >
 
void test_visit_basic ()
 
void test_visit_simplified ()
 
void test_visit_simplified_set ()
 
void test_visit_simplified_map ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 

Function Documentation

◆ main()

int main ( )

Definition at line 382 of file 30-visit.cpp.

Here is the call graph for this function:

◆ test_visit_basic()

void test_visit_basic ( )

Definition at line 155 of file 30-visit.cpp.

Here is the call graph for this function:

◆ test_visit_simplified()

void test_visit_simplified ( )

Definition at line 229 of file 30-visit.cpp.

◆ test_visit_simplified_map()

void test_visit_simplified_map ( )

Definition at line 335 of file 30-visit.cpp.

Here is the caller graph for this function:

◆ test_visit_simplified_set()

void test_visit_simplified_set ( )

Definition at line 279 of file 30-visit.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 30-visit.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 30-visit.cpp.