May 2017
Intermediate to advanced
590 pages
17h 18m
English
To demonstrate how the CRTP works, we will revisit the example with the hierarchy of control classes implemented in the Separating interfaces from implementations with the non-virtual interface idiom recipe. We will define a set of control classes that have functionalities such as drawing the control, that is, (in our example) an operation done in two phases: erasing the background and then painting the control.
Read now
Unlock full access