]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/doc/is_nothrow_move_assignable.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / is_nothrow_move_assignable.qbk
CommitLineData
7c673cae
FG
1[/
2 Copyright 2007 John Maddock.
3 Copyright 2013 Antony Polukhin.
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
7]
8
9[section:is_nothrow_move_assignable is_nothrow_move_assignable]
10
11 template <class T>
12 struct is_nothrow_move_assignable : public __tof {};
13
14__inherit If `T` is a (possibly cv-qualified) type with a non-throwing move assignment-operator
15or a type without move assignment-operator but with non-throwing assignment-operator,
16then inherits from __true_type, otherwise inherits from __false_type. Type `T`
17must be a complete type.
18
19In other words, inherits from __true_type only if expression `variable1 = std::move(variable2)`
20won't throw (`variable1` and `variable2` are variables of type `T`).
21
22__compat If the compiler does not support partial-specialization of class
23templates, then this template can not be used with function types.
24
25Without some (C++11 noexcept shall work correctly) help from the compiler,
26`is_nothrow_move_assignable` will never report that a class or struct has a
27non-throwing assignment-operator; this is always safe, if possibly sub-optimal.
28Currently (June 2015) MSVC-12.0, Clang and GCC 4.7 have the necessary compiler support to ensure that this
29trait "just works".
30
31__header ` #include <boost/type_traits/is_nothrow_move_assignable.hpp>` or ` #include <boost/type_traits.hpp>`
32
33[endsect]
34