O'Reilly logo

API Design for C++ by Martin Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Patterns

Publisher Summary

This chapter focuses on the techniques and principles of building high-quality APIs. It covers a few useful design patterns and idioms that relate to C++ API design. A design pattern is a general solution to a common software design problem. It concentrates on those design patterns that are of particular importance to the design of high-quality APIs and discusses their practical implementation in C++. It also covers C++ idioms that may not be considered true generic design patterns, but which are nevertheless important techniques for C++ API design. The techniques that are used specifically are: pimpl idiom, singleton and factory method, proxy, adapter, and facade, and observer. The chapter also details the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required