C++ Library Extensions 2022.12.09
To help learn modern C++ programming
008-common_type_t.cpp
Go to the documentation of this file.
1
13#include <iostream>
14#include <vector>
15
16#include <tpf_types.hpp>
17#include <tpf_output.hpp>
18
24{
25 // using namespace tpf::output;
26 // introduces stream output operators << for type name display
27 using namespace tpf::output;
28
29 // namespace alias
30 namespace types = tpf::types;
31
32 auto& cout = std::cout;
33 auto nl = "\n";
34 cout << std::boolalpha;
35
36 // define two types alias
37
38 using common_type1_t = types::common_type_t<
39
40}
46{
47
48}
49
50int main()
51{
54}
void examples_common_type_t()
Examples for tpf::types::common_type_t<Type1, Type2>
void examples_common_type_v()
Examples for type::types::common_type_v<Type1, Type2>
int main()
auto nl
auto & cout
Stream output operators are defined.
Definition: tpf_output.hpp:58
Type to string name conversions are defined.
Definition: 31-visit.cpp:7
hidden::common_type_t< Types... > common_type_t
Definition: tpf_types.hpp:5122
Stream output operators << are implemented.
Type functions are implemented.