C++ Library Extensions 2022.12.09
To help learn modern C++ programming
007-make_signed_t.cpp
Go to the documentation of this file.
1
12#include <iostream>
13#include <tpf_types.hpp>
14
16{
17 namespace types = tpf::types;
18 auto& cout = std::cout;
19 auto nl = "\n";
20 cout << std::boolalpha;
21
22 cout << "Make [char] unsigned: "
24
25 cout << "Make [bool] signed: "
27
28 cout << "Make [double] signed: "
30
31 cout << "Make [int] unsigned: "
33
34 cout << "Make [unsigned int] signed: "
36}
37
39{
40 namespace types = tpf::types;
41 auto& cout = std::cout;
42 auto nl = "\n";
43 cout << std::boolalpha;
44
45 cout << "Make [char] unsigned integral type: "
47
48 cout << "Make [bool] signed integral type: "
50
51 cout << "Make [double] signed integral type: "
53
54 cout << "Make [int] unsigned integral type: "
56
57 cout << "Make [unsigned int] signed integral type: "
59
60}
61
62int main()
63{
65
67
69}
void examples_make_signed_unsigned_integral_t()
void examples_make_signed_unsigned_t()
int main()
auto nl
auto & cout
auto & endl
Type to string name conversions are defined.
Definition: 31-visit.cpp:7
hidden::make_signed_integral_t< Type > make_signed_integral_t
Definition: tpf_types.hpp:5116
hidden::make_signed_t< Type > make_signed_t
Definition: tpf_types.hpp:5110
hidden::make_unsigned_t< Type > make_unsigned_t
Definition: tpf_types.hpp:5107
hidden::make_unsigned_integral_t< Type > make_unsigned_integral_t
Definition: tpf_types.hpp:5113
Type functions are implemented.
#define Tpf_GetTypeName(type_arg)
A macro that returns type_arg's string name.
Definition: tpf_types.hpp:1422