What is Copy Elision, RVO & NRVO?

Copy elision is an optimization technique in which the compiler ignores the class's copy and move…

Compile Time “if” statement

Compile time if is a C++17 syntax which causes compiler to evaluate the given "if" expression…

Difference between using and typedef in C++

the main difference between using and typedef in C++ specifically relates to templates. Whenever, the program…

Lambda in C++ 11

Lambda in C++ consist of expressions (called Lambda expressions). These expressions cause compilers to generate internal…

Lambda in C++ 17 : New Updates

Lambda in C++ 17 has new changes feature list. They are now better and more suited…

Generic Lambda in C++ 14

Generic Lambda in C++ 14 is a feature similar to templates. This was not present in…

Uniform initialization in C++ 11

to solve the existing problems, language standard has introduced uniform initialization in C++ 11. This new…

Callable Objects: Using std::function and std::bind

C++11 introduces a notion of callable objects. These objects include, not only function pointers and function…

std::any in C++

This class std::any in C++ is like a container and it saves a variable or object…

static_assert

When the expression in static_assert evaluates to value "False" then, it the program will not compile.…

Explain nullptr and nullptr_t

nullptr do not have either an integral type or even a pointer type. The actual type…

auto in C++: Understand the details

The auto in C++ is a new keyword which helps to define any variable or function.…