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

Go to the source code of this file.

Classes

struct  first_n_types_list_st< 0, type_list_t<>, type_list_t<> >
 
struct  first_n_types_list_st< 0, type_list_t<>, type_list_t< RightType, RightTypes... > >
 
struct  first_n_types_list_st< 1, type_list_t< LeftTypes... >, type_list_t<> >
 
struct  first_n_types_list_st< 1, type_list_t< LeftTypes... >, type_list_t< RightType, RightTypes... > >
 
struct  first_n_types_list_st< FirstN, type_list_t< LeftTypes... >, type_list_t< RightType, RightTypes... > >
 
struct  first_n_types_st< FirstN, Types >
 
struct  first_n_types_st< FirstN, type_list_t< Types... > >
 

Typedefs

template<typename... Types>
using type_list_t = types::type_list_t< Types... >
 
template<size_t FirstN, typename... Types>
using first_n_types_list_t = typename first_n_types_list_st< FirstN, type_list_t<>, Types... >::type
 
template<size_t FirstN, typename... Types>
using first_n_types_t = typename first_n_types_st< FirstN, Types... >::type
 

Functions

void test_first_n_types_list ()
 
void test_first_n_types_t ()
 
int main ()
 

Variables

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

Typedef Documentation

◆ first_n_types_list_t

template<size_t FirstN, typename... Types>
using first_n_types_list_t = typename first_n_types_list_st<FirstN, type_list_t<>, Types...>::type

Definition at line 49 of file 24-first_n_types.cpp.

◆ first_n_types_t

template<size_t FirstN, typename... Types>
using first_n_types_t = typename first_n_types_st<FirstN, Types...>::type

Definition at line 70 of file 24-first_n_types.cpp.

◆ type_list_t

template<typename... Types>
using type_list_t = types::type_list_t<Types...>

Definition at line 9 of file 24-first_n_types.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 135 of file 24-first_n_types.cpp.

Here is the call graph for this function:

◆ test_first_n_types_list()

void test_first_n_types_list ( )

Definition at line 72 of file 24-first_n_types.cpp.

◆ test_first_n_types_t()

void test_first_n_types_t ( )

Definition at line 95 of file 24-first_n_types.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 6 of file 24-first_n_types.cpp.

◆ stream

tpf::sstream stream

Definition at line 5 of file 24-first_n_types.cpp.