Learn C++ With Template Metaprogramming: Type Traits by Jodi Haggins (CPPCon 2020) Video
November 26, 2020
Template metaprogramming can be very broad. However, fundamental idioms exist and can be found useful with the modern C++ code. This video focuses on applying type traits from the standard library, as having knowledge in the fundamental idioms of template metaprogramming can…
If Statements In Modern C++
November 26, 2020
There are two kinds of if statements in modern C++: runtime if and compile-time if constexpr.
Runtime if looks like:
if (condition) statement-true
if (condition) statement-true else statement-false
In both forms of above if the result of…
Learn The Initialization Of Class Objects By Rvalues When Building Windows Apps In C++
November 25, 2020
C++Builder includes the use of rvalue references, which allow creating a reference to temporaries. When you initialize to an class object using an rvalue(a temporary object), C++11 looks to see if you have defined a move constructor in your class. If you have, the temporary object is passed to it as a modifiable (non-const) rvalue reference, allowing you to transfer ownership of resource pointers…
Learn About Using Right Angle Brackets In This C++11 Feature For Windows Development
November 25, 2020
In the Clang-enhanced C++ compilers, two consecutive right angle brackets no longer generate an error, and these constructions are treated according to the C++11 standard.
C++03’s parser defines “>>” as the right shift operator or stream extraction…
Learn C++ With Back to Basics: The Structure of a Program by Bob Steagall (CPPCon 2020) Video
November 25, 2020
In this talk, the fundamentals of how source code is converted into executable programs will be tackled. If fundamental concepts like declarations, definitions, translation units, and one-definition rule can be a bit confusing for you, then this refresher can help you have a…
Learn How To Use Auto-Typed Variables In C++ For Windows Development
November 20, 2020
auto-typed variables is a C++11 feature that allows the programmer to declare a variable of type auto, the type itself being deduced from the variable’s initializer expression. The auto keyword is treated as a simple type specifier (that can be used with * and &)…
BCC32, which is the classic C++Builder 32 bit compiler, includes the use of rvalue references, which allow creating a reference to temporaries. Also, rvalue references avoid unnecessary copying and make possible perfect forwarding functions. This feature is one of the C++11…