May 2017
Intermediate to advanced
590 pages
17h 18m
English
Take the following steps to implement the pimpl idiom, exemplified here by refactoring the control class shown earlier:
// in control.h class control_pimpl;
class control { std::unique_ptr< control_pimpl, void(*)(control_pimpl*)> pimpl; public: control(); void set_text(std::string_view text); void resize(int const w, int const h); void show(); ...Read now
Unlock full access