What is the decorator pattern and how does it differ from the Adapter pattern?
The classic OOP implementation of the decorator pattern is usually not recommended in C++. Why not?
When should the C++ class decorator use inheritance or composition?
When should the C++ class adapter use inheritance or composition?
C++ provides a general function adapter for currying function arguments, std::bind. What are its limitations?
C++11 provides template aliases that can be used as adapters. What are their limitations?
Both the adapter and policy patterns can be used to add or modify the public interface of a class. Give are some reasons for preferring one over the other.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.