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.
In my previous post Recursion, List Manipulation, and Lazy Evaluation, I wrote about the characteristics of functional programming: The story about lazy evaluation in C++ is short. Sorry to say, but I have forgotten templates. The two advanced techniques CRTP and expression templates, are based on lazy evaluation.
Currently are 202 guests and no members online
Kubik-Rubik Joomla! Extensions