Glossary: Software Design Patterns in C++
Adapter
Also written: adapter pattern
A small class that wraps a library you can't edit and offers the shape your code expects, translating each call. `UpsCarrier` adapts UPS's cents-in-a-struct API to a `Carrier` that quotes dollars.