JosephApr 18, 20222 minVariadic StructuresWe can use variadic arguments to create variadic data structures in C++. template<typename ... T> struct DS{}; template<typename T,...
JosephApr 11, 20221 minType Manipulation in C++C++ standard library has simple functions to manipulate types. The following example shows how we can find the type of a variable and...
JosephApr 4, 20221 minC++ constexprConstexpr is a keyword that declares that the value of a variable or a function is declared at compile time. Similar to the const keyword...
JosephApr 3, 20221 minFold Expression in C++17A fold expression is an instruction for the compiler to repeat the application of an operator over a parameter pack. This is especially...