Variadic Template
In C++ templates may use to declare to get several version In here you may find a way to declare a type called Param but not only one strict type. You may use it...
In C++ templates may use to declare to get several version In here you may find a way to declare a type called Param but not only one strict type. You may use it...
By writing a constructor template you can cover several alternatives of the constructors. But there is also a way to call copy constructor or move constructor when you forwarding an object. In flowing code,...
You can pass size of an array by only using a template parameter. Here is an example code of it
You cant throw an exception from a deconstruction method of a class because all destroy methods are noexcept(true).
Virtual is a keyword to declare that the method must be override If all method is virtual and equals 0, the class runs as an interface. Override keywords shows that the virtual method has...
using keyword is the new way to implement a constructor to the child class.
If you set a list to an abject (or on auto keyword). CPP compiler assumes that the type of variable is initializer_list
Constexpr is a new keyword for a C++ developer. Normally Const returns constant but in runtime. Constexpr generally is used in front of a function. The function should be able to calculate in compile...