C++ Library Extensions 2022.12.09
To help learn modern C++ programming
055-make_variant.cpp
Go to the documentation of this file.
1#include <tpf_output.hpp>
2
5
7{
8 auto v = tpf::types::make_variants(5.0f, "I love it", "So Cool");
9
10 // stream <<"Type of v: " << Tpf_GetTypeCategory(v) << endl;
11
12 stream << v << endl;
13
14}
15
16int main()
17{
19}
tpf::sstream stream
auto endl
void test_make_variant()
int main()
auto make_variants(Type &&arg, Types &&... args)
Definition: tpf_types.hpp:7479
constexpr auto endl
Definition: tpf_output.hpp:973
Stream output operators << are implemented.