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可以,标准是允许的
原文地址:https://www.cnblogs.com/cloudseawang/p/826796.html