© Dmitri Nesteruk 2018
Dmitri NesterukDesign Patterns in Modern C++https://doi.org/10.1007/978-1-4842-3603-1_12

12. Proxy

Dmitri Nesteruk1 
(1)
St. Petersburg, Russia
 

When we looked at the Decorator design pattern, we saw the different ways of enhancing the functionality of an object. The Proxy design pattern is similar, but its goal is generally to preserve exactly (or as closely as possible) the API that is being used while offering certain internal ehnancements.

Proxy isn’t really a homogeneous API, because the different kinds of proxies people build are quite numerous and serve entirely different purposes. In this chapter we’ll take a look at a selection of different proxy objects, and you can find more online.

Smart Pointers

The simplest and most ...

Get Design Patterns in Modern C++: Reusable Approaches for Object-Oriented Software Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.