STL适配器Adapters
适配器事实上是一种设计模式(design pattern),将一个 class 的接口转换为另一个 class 的接口,使原本因接口不兼容的而不能合作的 class 可以一起运作。比如 STL 的 两个容器 queue 和 stack 就是两个典型的修饰 deque 接口而表现出另一种风格的适配器。
Keep Calm and Carry On