Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Deduction guide for basic_string

boost::container::basic_string

Synopsis

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


template<typename InputIterator, typename Allocator> 
  basic_string(InputIterator, InputIterator, Allocator const &) -> basic_string< typename iterator_traits< InputIterator >::value_type, Allocator >;

Description

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


PrevUpHomeNext