C++ Library Extensions 2022.12.09
To help learn modern C++ programming
008-is_operable_v.cpp
Go to the documentation of this file.
1
12#include <iostream>
13#include <vector>
14
15#include <tpf_types.hpp>
16#include <tpf_output.hpp>
17
24{
25 namespace types = tpf::types;
26 auto& cout = std::cout;
27 auto nl = "\n";
28 cout << std::boolalpha;
29
30 cout <<"Is [int] and [double] operable? " <<
31 types::is_operable_v<int, double> << nl;
32
33 cout <<"Is [int] and [int*] operable? " <<
34 types::is_operable_v<int, int*> << nl;
35}
36
38{
39
40}
41
42
43
44int main()
45{
47
49
51}
void examples_common_type_t()
Examples for tpf::types::common_type_t<Type1, Type2>
void examples_is_operable_v()
Test is_operable_v type function.
void examples_is_operable_t()
int main()
auto nl
auto & cout
auto & endl
Type to string name conversions are defined.
Definition: 31-visit.cpp:7
Stream output operators << are implemented.
Type functions are implemented.