]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/doc/has_nothrow_destruct.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / has_nothrow_destruct.qbk
CommitLineData
7c673cae
FG
1[/
2 Copyright 2015 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
6]
7
8[section:has_nothrow_destruct has_nothrow_destructor]
9
10 template <class T>
11 struct has_nothrow_destructor : public __tof {};
12
13__inherit If T is a (possibly cv-qualified) type with a non-throwing destructor
14then inherits from __true_type, otherwise inherits from __false_type. Type `T`
15must be a complete type.
16
17__compat Either requires C++11 `noexcept` and `decltype` or else some (unspecified) help from the compiler.
18You may test to see if the necessary support is available
19by checking to see if `!defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_NOEXCEPT)` is true.
20
21__header ` #include <boost/type_traits/has_nothrow_copy.hpp>` or ` #include <boost/type_traits.hpp>`
22
23[note
24Note that destructors are assumed to be non-throwing unless they are explicitly marked otherwise with a `throw(something)` specification.
25This is in line with the C++11 standard.
26]
27
28[endsect]
29