C++ Library Extensions 2022.12.09
To help learn modern C++ programming
070-improve_types.cpp
Go to the documentation of this file.
1#include <tpf_output.hpp>
2
3namespace types = tpf::types;
4
7
9{
11
14
15 stream << "t0 = " << t0{} << endl;
16 stream << "t1 = " << t1{} << endl;
17
20
21 stream << "t2 = " << t2{} << endl;
22 stream << "t3 = " << t3{} << endl;
23}
24
26{
29
30 stream << "t0 = " << t0{} << endl;
31 stream << "t1 = " << t1{} << endl;
32
34
37
38 stream << "t2 = " << t0{} << endl;
39 stream << "t3 = " << t1{} << endl;
40}
41
43{
46
47 stream << "t0 = " << t0{} << endl;
48 stream << "t1 = " << t1{} << endl;
49
51
54
55 stream << "t2 = " << t2{} << endl;
56 stream << "t3 = " << t3{} << endl;
57}
58
59int main()
60{
61 // test_type_functions();
62
63 // test_push_function();
64
66}
tpf::sstream stream
void test_push_function()
void test_type_functions()
void test_remove_type_function()
auto endl
int main()
Type to string name conversions are defined.
Definition: 31-visit.cpp:7
hidden::push_back_type_t< ArgType, Types... > push_back_type_t
Definition: tpf_types.hpp:5603
hidden::push_front_type_t< ArgType, Types... > push_front_type_t
Definition: tpf_types.hpp:5600
hidden::pop_back_type_t< Types... > pop_back_type_t
Definition: tpf_types.hpp:5609
hidden::pop_front_type_t< Types... > pop_front_type_t
Definition: tpf_types.hpp:5606
hidden::remove_type_t< ArgType, Types... > remove_type_t
Definition: tpf_types.hpp:5657
constexpr auto endl
Definition: tpf_output.hpp:973
This type is used to manipulate type list.
Definition: tpf_types.hpp:956
Stream output operators << are implemented.