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
15
int
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
}
main
int main()
Definition:
000-hello.cpp:15
cout
auto & cout
Definition:
044-functional.cpp:3
endl
auto & endl
Definition:
apply_operations.cpp:32
Tpf_GetValueCategory
#define Tpf_GetValueCategory(instance_arg)
A macro that returns instance_arg's value category string name.
Definition:
tpf_types.hpp:1434
Tpf_GetTypeCategory
#define Tpf_GetTypeCategory(instance_arg)
A macro that returns instance_arg's type category string name.
Definition:
tpf_types.hpp:1428
CppExtension
examples
000-hello.cpp
Generated by
1.9.4