AutomaticReturnType

Automatic Return Type (C++98)

/
Depending on the used C++ standard, there are different ways to return the correct return type of a function…
templates

Dependent Names

/
A dependent name is essentially a name that depends on a template parameter. A dependent name can be…
templates

The Special Friendship of Templates

/
A friend has unrestricted access to the members of a class. Consequently, friendship should be given…
templates

Visiting a std::variant with the Overload Pattern

/
Typically, you use the overload pattern for a std::variant. std::variant is a type-safe union. A std::variant…
templates

Smart Tricks with Parameter Packs and Fold Expressions

/
To complete my post about variadic templates and fold expressions, I present in this post smart tricks…
templates

From Variadic Templates to Fold Expressions

/
In my last two posts, "Variadic Templates or the Power of Three Dots" and "More about Variadic Templates",…
templates

More about Variadic Templates …

/
There is a lot of power in the strange-looking three dots that are heavily used in the Standard Template…
templates

Variadic Templates or the Power of Three Dots

/
A variadic template is a template that can have an arbitrary number of template parameters. This feature…
templatesInstantiation

Template Instantiation

/
Template instantiation is creating a concrete function or a concrete class out of a function or class…
TemplateSpecialization

Full Specialization of Function Templates

/
As you may know from my previous post, Template Specialization, a function template can only be full…