Decorator pattern in C++

Vince Huston Design Patterns, even though its layout is poor, has C++ implementation for most design patterns in the Gang of Four book.

Click for Decorator.

There isn’t much difference with Java, except the manual memory handling that you’d better wrap with smart pointers 🙂

Leave a Comment