Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Deduction guide for vector

boost::container::vector

Synopsis

// In header: <boost/container/vector.hpp>


template<typename InputIterator, typename Allocator> 
  vector(InputIterator, InputIterator, Allocator const &) -> vector< typename iter_value< InputIterator >::type, Allocator >;

Description

Deduction guide: allows a vector to be constructed from the iterator range [first, last), deducing the element type from the value type of InputIterator and taking the allocator type from the supplied allocator.


PrevUpHomeNext