template <class T, class Container = deque<T> > class queue;
| 成员类型 | 定义 | 说明 |
|---|---|---|
| value_type | 第一个模板参数 (T) | 元素的类型 |
| container_type | 第二个模板参数 (Container) | 底层容器的类型 |
| size_type | 一个无符号整数类型 | 通常与 size_t 相同 |
| 成员类型 | 定义 | 说明 |
|---|---|---|
| value_type | 第一个模板参数 (T) | 元素的类型 |
| container_type | 第二个模板参数 (Container) | 底层容器的类型 |
| 引用 | container_type::reference | 通常是 value_type& |
| const_reference | container_type::const_reference | 通常是 const value_type& |
| size_type | 一个无符号整数类型 | 通常与 size_t 相同 |