The registration for my mentoring program, "Fundamentals for C++ Professionals", is still open until 17th April. The program starts on 22nd April.
In my last post, I presented a possible std::advance implementation based on tag dispatching. One of my readers mentioned that I could also implement std::advance based on constexpr if, or concepts. His right. So let's do it.
Before you participate in my mentoring program, you should know more about it. Today, I publish as a teaser, step six of the 28 steps to master C++.
Tag Dispatching enables it to choose a function based on the type characteristics. This decision takes place at compile time and is based on traits.
Thanks to templates, there are new ways of software design. Policies and traits are two commonly used idioms in C++.
I'm happy to announce: The registration for my mentoring program is now open until the 17th of April.
Expression templates are typically used in linear algebra and are "structures representing a computation at compile-time, which structures are evaluated only as needed to produce efficient code for the entire computation" (https://en.wikipedia.org/wiki/Expression_templates). In other words, expression templates are only evaluated when needed.
In my previous post "More about Dynamic and Static Polymorphism", I used the Curiously Recurring Template Pattern (CRTP) to implement static polymorphism. Another typical use case for CRTP are mixins.
Get my 3-books bundle Modern C++ Collection for half the price ($66 -> $33).
I have prepared my mentoring program and am ready to start on 22nd April.
Currently are 629 guests and no members online
Kubik-Rubik Joomla! Extensions