C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Classes | |
struct | test_result |
the container for test input and output. More... | |
Variables | |
struct { | |
uint32_t anonymous_namespace{chapter-1.cpp}::expected | |
uint32_t anonymous_namespace{chapter-1.cpp}::got | |
} | run [] |
the container for test input and output. | |
uint32_t anonymous_namespace{chapter-1.cpp}::expected |
Definition at line 58 of file c++20/chapter-1.cpp.
uint32_t anonymous_namespace{chapter-1.cpp}::got |
Definition at line 58 of file c++20/chapter-1.cpp.
struct anonymous_namespace{chapter-1.cpp}::test_result anonymous_namespace{chapter-1.cpp}::run |
the container for test input and output.
The book suggests making named constants in the global scope, but having a structure both allows me to add elements without much thought, and to use printf
, which does one function call, instead of std::cout
, which calls operator<<
many times for various inputs.