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

Go to the source code of this file.

Classes

struct  to_variant_st< Type >
 
struct  to_variant_st< tpf::types::type_list_t< Type > >
 
struct  to_variant_st< tpf::types::type_list_t< Type, Types... > >
 

Typedefs

template<typename Type >
using remove_cv_ref_t = std::remove_cv_t< std::remove_reference_t< Type > >
 
template<typename Type >
using decay_remove_cv_ref_t = remove_cv_ref_t< std::decay_t< Type > >
 
template<typename Type , typename... Types>
using to_variant_t = typename to_variant_st< tpf::types::unique_types_t< Type, Types... > >::type
 

Functions

template<typename Type , typename... Types>
auto make_variants (Type &&arg, Types &&... args)
 
void test_make_variants ()
 
void test_make_variants_two ()
 
int main ()
 

Variables

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

Typedef Documentation

◆ decay_remove_cv_ref_t

template<typename Type >
using decay_remove_cv_ref_t = remove_cv_ref_t<std::decay_t<Type> >

Definition at line 10 of file 038-make_variants.cpp.

◆ remove_cv_ref_t

template<typename Type >
using remove_cv_ref_t = std::remove_cv_t<std::remove_reference_t<Type> >

Definition at line 7 of file 038-make_variants.cpp.

◆ to_variant_t

template<typename Type , typename... Types>
using to_variant_t = typename to_variant_st< tpf::types::unique_types_t<Type, Types...> >::type

Definition at line 31 of file 038-make_variants.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 85 of file 038-make_variants.cpp.

Here is the call graph for this function:

◆ make_variants()

template<typename Type , typename... Types>
auto make_variants ( Type &&  arg,
Types &&...  args 
)

Definition at line 34 of file 038-make_variants.cpp.

Here is the caller graph for this function:

◆ test_make_variants()

void test_make_variants ( )

Definition at line 61 of file 038-make_variants.cpp.

Here is the call graph for this function:

◆ test_make_variants_two()

void test_make_variants_two ( )

Definition at line 69 of file 038-make_variants.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 038-make_variants.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 038-make_variants.cpp.