![]() |
Home | Libraries | People | FAQ | More |
boost::container::small_vector_base
// In header: <boost/container/small_vector.hpp> template<typename T, typename SecAlloc, typename Options> class small_vector_base : public { public: // types typedef ; typedef allocator_traits< ; typedef dtl::get_small_vector_opt< ; typedef dtl::vector_for_small_vector< ; typedef allocator_traits< ; typedef allocator_traits< ; typedef allocator_traits< ; typedef allocator_traits< ; typedef small_vector_allocator< ; // construct/copy/destruct (, ); template<typename AllocFwd> (, , ); small_vector_base & (small_vector_base &); small_vector_base & (small_vector_base &&); // private member functions () ; () ; base_type & (); base_type & () ; // public member functions (small_vector_base &); };
This class consists of common code from all small_vector<T, N> types that don't depend on the "N" template parameter. This class is non-copyable and non-destructible, so this class typically used as reference argument to functions that read or write small vectors. Since small_vector<T, N>
derives from small_vector_base<T>
, the conversion to small_vector_base
is implicit
//Clients can pass any small_vector<Foo, N>.
All boost::container:vector
member functions are inherited. See vector
documentation for details.
small_vector_base
public
construct/copy/destruct(, initial_capacity);
template<typename AllocFwd> (, capacity, a);
small_vector_base & (small_vector_base & other);
small_vector_base & (small_vector_base && other);