1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Class template small_vector</title> 6<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 8<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> 9<link rel="up" href="../../boost_container_header_reference.html#header.boost.container.small_vector_hpp" title="Header <boost/container/small_vector.hpp>"> 10<link rel="prev" href="dtl/vector_for_small_vector.html" title="Struct template vector_for_small_vector"> 11<link rel="next" href="small_vector_allocator.html" title="Class template small_vector_allocator"> 12</head> 13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 14<table cellpadding="2" width="100%"><tr> 15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 16<td align="center"><a href="../../../../index.html">Home</a></td> 17<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 20<td align="center"><a href="../../../../more/index.htm">More</a></td> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="dtl/vector_for_small_vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#header.boost.container.small_vector_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="small_vector_allocator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="boost.container.small_vector"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Class template small_vector</span></h2> 30<p>boost::container::small_vector</p> 31</div> 32<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 33<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../boost_container_header_reference.html#header.boost.container.small_vector_hpp" title="Header <boost/container/small_vector.hpp>">boost/container/small_vector.hpp</a>> 34 35</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> N<span class="special">,</span> <span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span><span class="special">,</span> 36 <span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span><span class="special">></span> 37<span class="keyword">class</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">:</span> 38 <span class="keyword">public</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">small_vector_base</span><span class="special"><</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="identifier">Options</span> <span class="special">></span> 39<span class="special">{</span> 40<span class="keyword">public</span><span class="special">:</span> 41 <span class="comment">// <a class="link" href="small_vector.html#boost.container.small_vectorconstruct-copy-destruct">construct/copy/destruct</a></span> 42 <a class="link" href="small_vector.html#idm45641210451360-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_default_constructible</span><span class="special"><</span> <span class="identifier">allocator_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 43 <span class="keyword">explicit</span> <a class="link" href="small_vector.html#idm45641210450736-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 44 <span class="keyword">explicit</span> <a class="link" href="small_vector.html#idm45641210449488-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span> 45 <a class="link" href="small_vector.html#idm45641210448240-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 46 <a class="link" href="small_vector.html#idm45641210446576-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="default_init_t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span> 47 <a class="link" href="small_vector.html#idm45641210444784-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <a class="link" href="default_init_t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 48 <a class="link" href="small_vector.html#idm45641210442304-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 49 <a class="link" href="small_vector.html#idm45641210440640-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 50 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InIt<span class="special">></span> <a class="link" href="small_vector.html#idm45641210438288-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">InIt</span><span class="special">,</span> <span class="identifier">InIt</span> <span class="identifier">last</span> <span class="special">)</span><span class="special">;</span> 51 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InIt<span class="special">></span> <a class="link" href="small_vector.html#idm45641210435776-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">InIt</span><span class="special">,</span> <span class="identifier">InIt</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="identifier">a</span> <span class="special">)</span><span class="special">;</span> 52 <a class="link" href="small_vector.html#idm45641210432560-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 53 <a class="link" href="small_vector.html#idm45641210431136-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 54 <span class="keyword">explicit</span> <a class="link" href="small_vector.html#idm45641210429024-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="keyword">const</span> base_type <span class="special">&</span><span class="special">)</span><span class="special">;</span> 55 <span class="keyword">explicit</span> <a class="link" href="small_vector.html#idm45641210427328-bb"><span class="identifier">small_vector</span></a><span class="special">(</span>base_type <span class="special">&&</span><span class="special">)</span><span class="special">;</span> 56 <a class="link" href="small_vector.html#idm45641210425792-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_move_assignable</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 57 <a class="link" href="small_vector.html#idm45641210424192-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 58 <a class="link" href="small_vector.html#idm45641210422240-bb"><span class="identifier">small_vector</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span><span class="special">,</span> 59 <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 60 <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a class="link" href="small_vector.html#idm45641210420272-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 61 <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> 62 <a class="link" href="small_vector.html#idm45641210418272-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_move_assignable</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="special">(</span><span class="identifier">allocator_traits_type</span><span class="special">::</span><span class="identifier">propagate_on_container_move_assignment</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">allocator_traits_type</span><span class="special">::</span><span class="identifier">is_always_equal</span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 63 <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a class="link" href="small_vector.html#idm45641210415968-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> base_type <span class="special">&</span><span class="special">)</span><span class="special">;</span> 64 <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a class="link" href="small_vector.html#idm45641210413968-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span>base_type <span class="special">&&</span><span class="special">)</span><span class="special">;</span> 65 66 <span class="comment">// <a class="link" href="small_vector.html#idm45641210453904-bb">public member functions</a></span> 67 <span class="keyword">void</span> <a class="link" href="small_vector.html#idm45641210453344-bb"><span class="identifier">swap</span></a><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 68<span class="special">}</span><span class="special">;</span></pre></div> 69<div class="refsect1"> 70<a name="id-1.3.10.14.34.8.4"></a><h2>Description</h2> 71<p><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> is a vector-like container optimized for the case when it contains few elements. It contains some preallocated elements in-place, which can avoid the use of dynamic storage allocation when the actual number of elements is below that preallocated threshold.</p> 72<p><code class="computeroutput"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a><T, N, Allocator, Options></code> is convertible to <code class="computeroutput"><a class="link" href="small_vector_base.html" title="Class template small_vector_base">small_vector_base</a><T, Allocator, Options></code> that is independent from the preallocated element capacity, so client code does not need to be templated on that N argument.</p> 73<p>All <code class="computeroutput"><a class="link" href="vector.html" title="Class template vector">boost::container::vector</a></code> member functions are inherited. See <code class="computeroutput">vector</code> documentation for details.</p> 74<p> 75</p> 76<div class="refsect2"> 77<a name="id-1.3.10.14.34.8.4.6"></a><h3>Template Parameters</h3> 78<div class="orderedlist"><ol class="orderedlist" type="1"> 79<li class="listitem"> 80<pre class="literallayout"><span class="keyword">typename</span> T</pre> 81<p>The type of object that is stored in the <code class="computeroutput"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a></code> </p> 82</li> 83<li class="listitem"> 84<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> N</pre> 85<p>The number of preallocated elements stored inside <code class="computeroutput"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a></code>. It shall be less than Allocator::max_size(); </p> 86</li> 87<li class="listitem"> 88<pre class="literallayout"><span class="keyword">typename</span> Allocator <span class="special">=</span> <span class="keyword">void</span></pre> 89<p>The allocator used for memory management when the number of elements exceeds N. Use void for the default allocator |tparam Options A type produced from <code class="computeroutput"><code class="computeroutput"><a class="link" href="small_vector_options.html" title="Struct template small_vector_options">boost::container::small_vector_options</a></code></code>. </p> 90</li> 91<li class="listitem"><pre class="literallayout"><span class="keyword">typename</span> Options <span class="special">=</span> <span class="keyword">void</span></pre></li> 92</ol></div> 93</div> 94<div class="refsect2"> 95<a name="id-1.3.10.14.34.8.4.7"></a><h3> 96<a name="boost.container.small_vectorconstruct-copy-destruct"></a><code class="computeroutput">small_vector</code> 97 public 98 construct/copy/destruct</h3> 99<div class="orderedlist"><ol class="orderedlist" type="1"> 100<li class="listitem"><pre class="literallayout"><a name="idm45641210451360-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_default_constructible</span><span class="special"><</span> <span class="identifier">allocator_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li> 101<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45641210450736-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 102<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45641210449488-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre></li> 103<li class="listitem"><pre class="literallayout"><a name="idm45641210448240-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 104<li class="listitem"><pre class="literallayout"><a name="idm45641210446576-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="default_init_t.html" title="Struct default_init_t">default_init_t</a><span class="special">)</span><span class="special">;</span></pre></li> 105<li class="listitem"><pre class="literallayout"><a name="idm45641210444784-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <a class="link" href="default_init_t.html" title="Struct default_init_t">default_init_t</a><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 106<li class="listitem"><pre class="literallayout"><a name="idm45641210442304-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&</span> v<span class="special">)</span><span class="special">;</span></pre></li> 107<li class="listitem"><pre class="literallayout"><a name="idm45641210440640-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&</span> v<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 108<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InIt<span class="special">></span> 109 <a name="idm45641210438288-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">InIt</span> first<span class="special">,</span> <span class="identifier">InIt</span> <span class="identifier">last</span> BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre></li> 110<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InIt<span class="special">></span> 111 <a name="idm45641210435776-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">InIt</span> first<span class="special">,</span> <span class="identifier">InIt</span> last<span class="special">,</span> 112 <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span><span class="identifier">a</span> BOOST_CONTAINER_DOCIGN<span class="special">)</span><span class="special">;</span></pre></li> 113<li class="listitem"><pre class="literallayout"><a name="idm45641210432560-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 114<li class="listitem"><pre class="literallayout"><a name="idm45641210431136-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> other<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 115<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45641210429024-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="keyword">const</span> base_type <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 116<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="idm45641210427328-bb"></a><span class="identifier">small_vector</span><span class="special">(</span>base_type <span class="special">&&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 117<li class="listitem"><pre class="literallayout"><a name="idm45641210425792-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span> other<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_move_assignable</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li> 118<li class="listitem"><pre class="literallayout"><a name="idm45641210424192-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span> other<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a<span class="special">)</span><span class="special">;</span></pre></li> 119<li class="listitem"><pre class="literallayout"><a name="idm45641210422240-bb"></a><span class="identifier">small_vector</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span> il<span class="special">,</span> 120 <span class="keyword">const</span> <span class="identifier">allocator_type</span> <span class="special">&</span> a <span class="special">=</span> <span class="identifier">allocator_type</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li> 121<li class="listitem"><pre class="literallayout"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a name="idm45641210420272-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 122<li class="listitem"><pre class="literallayout"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> 123<a name="idm45641210418272-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&&</span> other<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">dtl</span><span class="special">::</span><span class="identifier">is_nothrow_move_assignable</span><span class="special"><</span> <span class="identifier">value_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span> <span class="special">&&</span><span class="special">(</span><span class="identifier">allocator_traits_type</span><span class="special">::</span><span class="identifier">propagate_on_container_move_assignment</span><span class="special">::</span><span class="identifier">value</span><span class="special">||</span><span class="identifier">allocator_traits_type</span><span class="special">::</span><span class="identifier">is_always_equal</span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li> 124<li class="listitem"><pre class="literallayout"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a name="idm45641210415968-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> base_type <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 125<li class="listitem"><pre class="literallayout"><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> <a name="idm45641210413968-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span>base_type <span class="special">&&</span> other<span class="special">)</span><span class="special">;</span></pre></li> 126</ol></div> 127</div> 128<div class="refsect2"> 129<a name="id-1.3.10.14.34.8.4.8"></a><h3> 130<a name="idm45641210453904-bb"></a><code class="computeroutput">small_vector</code> public member functions</h3> 131<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm45641210453344-bb"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="small_vector.html" title="Class template small_vector">small_vector</a> <span class="special">&</span> other<span class="special">)</span><span class="special">;</span></pre></li></ol></div> 132</div> 133</div> 134</div> 135<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 136<td align="left"></td> 137<td align="right"><div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p> 138 Distributed under the Boost Software License, Version 1.0. (See accompanying 139 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 140 </p> 141</div></td> 142</tr></table> 143<hr> 144<div class="spirit-nav"> 145<a accesskey="p" href="dtl/vector_for_small_vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#header.boost.container.small_vector_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="small_vector_allocator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 146</div> 147</body> 148</html> 149