C++ Library Extensions 2022.12.09
To help learn modern C++ programming
000-hello.cpp
Go to the documentation of this file.
1
12#include <iostream>
13#include <tpf_type.hpp>
14
15int main()
16{
17 // declare an instance of type int
18 int instance;
19
20 std::cout << "The type category of instance : "
21 << Tpf_GetTypeCategory(instance) << std::endl;
22
23 std::cout << "The value category of instance: "
24 << Tpf_GetValueCategory(instance) << std::endl;
25}
int main()
Definition: 000-hello.cpp:15
auto & cout
auto & endl
#define Tpf_GetValueCategory(instance_arg)
A macro that returns instance_arg's value category string name.
Definition: tpf_types.hpp:1434
#define Tpf_GetTypeCategory(instance_arg)
A macro that returns instance_arg's type category string name.
Definition: tpf_types.hpp:1428