container types
Containers In-depth
Types
Every standard container defines these typenames as members:| Typename | Meaning |
|---|---|
| value_type | the type of the containers elements (1st template arg) |
| allocator_type | describes how memory is allocated and deallocated for elements (optional 2nd template arg) |
| size_type | the type used for indexing the elements (usually corresponds to size_t) |
| difference_type | the type representing the result of subtracting two iterators |
| iterator | behaves like value_type* |
| reference | behaves like value_type& |
类内static const int 变量vc6不支持类内赋值,vc8可以,标准是允许的
posted on 2007-07-21 19:08 cloudseawang 阅读(258) 评论(0) 收藏 举报
浙公网安备 33010602011771号