C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
anonymous_namespace{chapter-1.cpp}::test_result Struct Reference

the container for test input and output. More...

Public Attributes

unsigned const expected
 
unsigned const got
 

Detailed Description

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.

Definition at line 72 of file chapter-1.cpp.

Member Data Documentation

◆ expected

unsigned const anonymous_namespace{chapter-1.cpp}::test_result::expected

Definition at line 73 of file chapter-1.cpp.

◆ got

unsigned const anonymous_namespace{chapter-1.cpp}::test_result::got

Definition at line 73 of file chapter-1.cpp.


The documentation for this struct was generated from the following file: