C++ Library Extensions
2022.12.09
To help learn modern C++ programming
template.cpp
Go to the documentation of this file.
1
/*
2
Author: Thomas Kim
3
First Edit: Feb. 03, 2021
4
5
Requirements: C++ compilers that supports C++17 Standards
6
7
clang++ -std=c++17 filename.cpp -ltbb -o output.exe
8
g++ -std=c++17 filename.cpp -ltbb -o output.exe
9
cl /EHsc /std:c++17 filename.cpp /Fe: output.exe
10
dpcpp -Qstd=c++17 filename.cpp -o output.exe
11
*/
12
13
#include <
tpf_std_extensions.hpp
>
14
#include <
tpf_output.hpp
>
15
16
namespace
types
=
tpf::types
;
17
18
tpf::sstream
stream
;
19
auto
&
endl
=
tpf::endl
;
// one carriage-return and flush out to console
20
auto
&
endL
=
tpf::endL
;
// two carriage-returns and flush out to console
21
22
int
main
()
23
{
24
25
}
tpf::output::string_stream
Definition:
tpf_output.hpp:844
tpf::types
Type to string name conversions are defined.
Definition:
31-visit.cpp:7
tpf::endL
constexpr auto endL
Definition:
tpf_output.hpp:974
tpf::endl
constexpr auto endl
Definition:
tpf_output.hpp:973
endl
auto & endl
Definition:
template.cpp:19
stream
tpf::sstream stream
Definition:
template.cpp:18
endL
auto & endL
Definition:
template.cpp:20
main
int main()
Definition:
template.cpp:22
tpf_output.hpp
Stream output operators << are implemented.
tpf_std_extensions.hpp
Type functions are implemented.
CppExtension
ArrayTupleWorkhorse
template.cpp
Generated by
1.9.4