• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>Chapter 25. Boost.Move</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="libraries.html" title="Part I. The Boost C++ Libraries (BoostBook Subset)">
10<link rel="prev" href="metaparse/reference.html" title="Reference">
11<link rel="next" href="move/what_is_boost_move.html" title="What is Boost.Move?">
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="metaparse/reference.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><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="move/what_is_boost_move.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="chapter">
27<div class="titlepage"><div>
28<div><h2 class="title">
29<a name="move"></a>Chapter 25. Boost.Move</h2></div>
30<div><div class="author"><h3 class="author">
31<span class="firstname">Ion</span> <span class="surname">Gaztanaga</span>
32</h3></div></div>
33<div><p class="copyright">Copyright © 2008-2014 Ion Gaztanaga</p></div>
34<div><div class="legalnotice">
35<a name="move.legal"></a><p>
36        Distributed under the Boost Software License, Version 1.0. (See accompanying
37        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>)
38      </p>
39</div></div>
40</div></div>
41<div class="toc">
42<p><b>Table of Contents</b></p>
43<dl class="toc">
44<dt><span class="section"><a href="move.html#move.tested_compilers">Tested compilers</a></span></dt>
45<dt><span class="section"><a href="move/what_is_boost_move.html">What is Boost.Move?</a></span></dt>
46<dt><span class="section"><a href="move/introduction.html">Introduction</a></span></dt>
47<dt><span class="section"><a href="move/implementing_movable_classes.html">Implementing copyable
48    and movable classes</a></span></dt>
49<dd><dl>
50<dt><span class="section"><a href="move/implementing_movable_classes.html#move.implementing_movable_classes.copyable_and_movable_cpp0x">Copyable
51      and movable classes in C++0x</a></span></dt>
52<dt><span class="section"><a href="move/implementing_movable_classes.html#move.implementing_movable_classes.copyable_and_movable_cpp03">Copyable
53      and movable classes in portable syntax for both C++03 and C++0x compilers</a></span></dt>
54</dl></dd>
55<dt><span class="section"><a href="move/composition_inheritance.html">Composition or inheritance</a></span></dt>
56<dt><span class="section"><a href="move/movable_only_classes.html">Movable but Non-Copyable Types</a></span></dt>
57<dt><span class="section"><a href="move/move_and_containers.html">Containers and move semantics</a></span></dt>
58<dt><span class="section"><a href="move/construct_forwarding.html">Constructor Forwarding</a></span></dt>
59<dt><span class="section"><a href="move/move_return.html">Implicit Move when returning a local
60    object</a></span></dt>
61<dt><span class="section"><a href="move/move_iterator.html">Move iterators</a></span></dt>
62<dt><span class="section"><a href="move/move_inserters.html">Move inserters</a></span></dt>
63<dt><span class="section"><a href="move/move_algorithms.html">Move algorithms</a></span></dt>
64<dt><span class="section"><a href="move/emulation_limitations.html">Emulation limitations</a></span></dt>
65<dd><dl>
66<dt><span class="section"><a href="move/emulation_limitations.html#move.emulation_limitations.emulation_limitations_base">Initializing
67      base classes</a></span></dt>
68<dt><span class="section"><a href="move/emulation_limitations.html#move.emulation_limitations.template_parameters">Template
69      parameters for perfect forwarding</a></span></dt>
70<dt><span class="section"><a href="move/emulation_limitations.html#move.emulation_limitations.emulation_limitations_binding">Binding
71      of rvalue references to lvalues</a></span></dt>
72<dt><span class="section"><a href="move/emulation_limitations.html#move.emulation_limitations.assignment_operator">Assignment
73      operator in classes derived from or holding copyable and movable types</a></span></dt>
74<dt><span class="section"><a href="move/emulation_limitations.html#move.emulation_limitations.templated_assignment_operator">Templated
75      assignment operator in copyable and movable types</a></span></dt>
76</dl></dd>
77<dt><span class="section"><a href="move/how_the_library_works.html">How the library works</a></span></dt>
78<dt><span class="section"><a href="move/thanks_to.html">Thanks and credits</a></span></dt>
79<dt><span class="section"><a href="move/release_notes.html">Release Notes</a></span></dt>
80<dd><dl>
81<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_73">Boost 1.73
82      Release</a></span></dt>
83<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_71">Boost 1.71
84      Release</a></span></dt>
85<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_70">Boost 1.70
86      Release</a></span></dt>
87<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_69">Boost 1.69
88      Release</a></span></dt>
89<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_67">Boost 1.67
90      Release</a></span></dt>
91<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_66">Boost 1.66
92      Release</a></span></dt>
93<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_65">Boost 1.65
94      Release</a></span></dt>
95<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_64">Boost 1.64
96      Release</a></span></dt>
97<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_62">Boost 1.62
98      Release</a></span></dt>
99<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_61">Boost 1.61
100      Release</a></span></dt>
101<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_60">Boost 1.60
102      Release</a></span></dt>
103<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_59">Boost 1.59
104      Release</a></span></dt>
105<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_58_00">Boost
106      1.58 Release</a></span></dt>
107<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_57_00">Boost
108      1.57 Release</a></span></dt>
109<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_56_00">Boost
110      1.56 Release</a></span></dt>
111<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_55_00">Boost
112      1.55 Release</a></span></dt>
113<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_54_00">Boost
114      1.54 Release</a></span></dt>
115<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_53_00">Boost
116      1.53 Release</a></span></dt>
117<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_51_00">Boost
118      1.51 Release</a></span></dt>
119<dt><span class="section"><a href="move/release_notes.html#move.release_notes.release_notes_boost_1_49_00">Boost
120      1.49 Release</a></span></dt>
121</dl></dd>
122<dt><span class="section"><a href="move/reference.html">Reference</a></span></dt>
123<dd><dl>
124<dt><span class="section"><a href="move/reference.html#header.boost.move.adl_move_swap_hpp">Header &lt;boost/move/adl_move_swap.hpp&gt;</a></span></dt>
125<dt><span class="section"><a href="move/reference.html#header.boost.move.algo.adaptive_merge_hpp">Header &lt;boost/move/algo/adaptive_merge.hpp&gt;</a></span></dt>
126<dt><span class="section"><a href="move/reference.html#header.boost.move.algo.adaptive_sort_hpp">Header &lt;boost/move/algo/adaptive_sort.hpp&gt;</a></span></dt>
127<dt><span class="section"><a href="move/reference.html#header.boost.move.algo.predicate_hpp">Header &lt;boost/move/algo/predicate.hpp&gt;</a></span></dt>
128<dt><span class="section"><a href="move/reference.html#header.boost.move.algo.unique_hpp">Header &lt;boost/move/algo/unique.hpp&gt;</a></span></dt>
129<dt><span class="section"><a href="move/reference.html#header.boost.move.algorithm_hpp">Header &lt;boost/move/algorithm.hpp&gt;</a></span></dt>
130<dt><span class="section"><a href="move/reference.html#header.boost.move.core_hpp">Header &lt;boost/move/core.hpp&gt;</a></span></dt>
131<dt><span class="section"><a href="move/reference.html#header.boost.move.default_delete_hpp">Header &lt;boost/move/default_delete.hpp&gt;</a></span></dt>
132<dt><span class="section"><a href="move/reference.html#header.boost.move.iterator_hpp">Header &lt;boost/move/iterator.hpp&gt;</a></span></dt>
133<dt><span class="section"><a href="move/reference.html#header.boost.move.make_unique_hpp">Header &lt;boost/move/make_unique.hpp&gt;</a></span></dt>
134<dt><span class="section"><a href="move/reference.html#header.boost.move.move_hpp">Header &lt;boost/move/move.hpp&gt;</a></span></dt>
135<dt><span class="section"><a href="move/reference.html#header.boost.move.algo.move_hpp">Header &lt;boost/move/algo/move.hpp&gt;</a></span></dt>
136<dt><span class="section"><a href="move/reference.html#header.boost.move.traits_hpp">Header &lt;boost/move/traits.hpp&gt;</a></span></dt>
137<dt><span class="section"><a href="move/reference.html#header.boost.move.unique_ptr_hpp">Header &lt;boost/move/unique_ptr.hpp&gt;</a></span></dt>
138<dt><span class="section"><a href="move/reference.html#header.boost.move.utility_hpp">Header &lt;boost/move/utility.hpp&gt;</a></span></dt>
139<dt><span class="section"><a href="move/reference.html#header.boost.move.utility_core_hpp">Header &lt;boost/move/utility_core.hpp&gt;</a></span></dt>
140</dl></dd>
141</dl>
142</div>
143<div class="important"><table border="0" summary="Important">
144<tr>
145<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../doc/src/images/important.png"></td>
146<th align="left">Important</th>
147</tr>
148<tr><td align="left" valign="top"><p>
149      To be able to use containers of movable-only values in C++03 mode you will
150      need to use containers supporting move semantics, like <span class="bold"><strong>Boost.Container</strong></span>
151      containers
152    </p></td></tr>
153</table></div>
154<div class="section">
155<div class="titlepage"><div><div><h2 class="title" style="clear: both">
156<a name="move.tested_compilers"></a><a class="link" href="move.html#move.tested_compilers" title="Tested compilers">Tested compilers</a>
157</h2></div></div></div>
158<p>
159      <span class="bold"><strong>Boost.Move</strong></span> has been tested in the following
160      compilers/platforms:
161    </p>
162<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
163<li class="listitem">
164          Visual C++ &gt;= 7.1.
165        </li>
166<li class="listitem">
167          GCC &gt;= 4.1.
168        </li>
169</ul></div>
170<div class="warning"><table border="0" summary="Warning">
171<tr>
172<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../doc/src/images/warning.png"></td>
173<th align="left">Warning</th>
174</tr>
175<tr><td align="left" valign="top"><p>
176        GCC &lt; 4.3 and MSVC &lt; 9.0 are deprecated and will be removed in the
177        next version.
178      </p></td></tr>
179</table></div>
180</div>
181</div>
182<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
183<td align="left"><p><small>Last revised: August 11, 2020 at 15:03:12 GMT</small></p></td>
184<td align="right"><div class="copyright-footer"></div></td>
185</tr></table>
186<hr>
187<div class="spirit-nav">
188<a accesskey="p" href="metaparse/reference.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><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="move/what_is_boost_move.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
189</div>
190</body>
191</html>
192