Effectively, an adaptor adapts an underlying container type by defining a new interface in terms of the operations provided by the original type.
英
美
- 实际上,适配器是根据原始的容器类型所提供的操作,通过定义新的操作接口,来适应基础的容器类型。