constants.cpp
-- various C++ constant values and their literal decimal representationfloat.cpp
-- float values, zero, NaN, infinityfloat-close.cpp
-- the pitfall of using std::...epsilon() to determine closenessfloat-epsilon.cpp
-- testing abs(a-b) < epsilonfpsum.cpp
-- preserving precision when summing floatsrgbclamp.cpp
-- testing [0,1] clamping
expr-vars.cpp
-- playing with comma-operator variable declarationsinitialization.cpp
-- testing member variable initializationscope-for.cpp
-- testing scope of variables declared in for-loopsscope-if.cpp
-- testing scope of variables declared in if-blocks
ignore.cpp
-- Usage & effects ofstd::ignore
for suppressing unused parameter warningsfilesystem.cpp
-- Thestd::filesystem
and related classesformat.cpp
-- Examples ofstd::format()
to format stringsistream.cpp
--std::istream
test (readsistream-test.txt
)ostream.cpp
--std::ostream
experimentsvariadic.cpp
-- Includes an example of functions that take an initializer list
array.cpp
--std::array
pair.cpp
-- playing with std::pair<>sharedPtr.cpp
-- experiments withstd::shared_ptr
,std::weak_ptr
string.cpp
-- experiments withstd::string
unordered_set.cpp
-- experiments withstd::unordered_set
partvirt.cpp
-- (crash) declaring non-virtual base dtor, plus virtual derived dtorstd-move-class.cpp
-- a class withstd::move
semanticstemplate-values.cpp
-- using templates to declare specialized value constantsvariadic.cpp
-- experiments with variadic functions
enum-bitfield
-- pitfalls ofenum
-based bitfieldstype-collision.cpp
-- illustrates that new types viausing
are mere type aliases