Containor
序列式容器
vector
// empty container constructor explicit vector (const allocator_type& alloc = allocator_type()); // fill constructor // 指定size, 并调用指定类型默认构造函数构造对象并填充 explicit vector (size_type n); explicit vector (size_type n, const value_type& val = value_type(), const allocator_type& alloc = allocator_type()); // range constructor template <class InputIterator> vector (InputIterator first, InputIterator last, const allocator_type& alloc = allocator_type()); // copy constructor vector (const vector& x); vector (const vector& x, const allocator_type& alloc); // c++11 // move constuctor vector (vector&& x); vector (vector&& x, const allocator_type& alloc); // initializer list // Constructs a container with a copy of each of the elements in il, in the same order vector (initializer_list<value_type> il, const allocator_type& alloc = allocator_type());
list
priority_queue
关联式容器
最后更新于