]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/type_traits/is_trivially_copyable.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / type_traits / is_trivially_copyable.hpp
1 /*
2 Copyright 2020 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License,
6 Version 1.0. (See accompanying file LICENSE_1_0.txt
7 or copy at http://www.boost.org/LICENSE_1_0.txt)
8 */
9
10 #ifndef BOOST_TT_IS_TRIVIALLY_COPYABLE_HPP_INCLUDED
11 #define BOOST_TT_IS_TRIVIALLY_COPYABLE_HPP_INCLUDED
12
13 #include <boost/type_traits/has_trivial_assign.hpp>
14 #include <boost/type_traits/has_trivial_copy.hpp>
15 #include <boost/type_traits/has_trivial_destructor.hpp>
16 #include <boost/type_traits/has_trivial_move_assign.hpp>
17 #include <boost/type_traits/has_trivial_move_constructor.hpp>
18
19 namespace boost {
20
21 template<class T>
22 struct is_trivially_copyable
23 : integral_constant<bool, has_trivial_copy<T>::value &&
24 has_trivial_assign<T>::value &&
25 has_trivial_move_constructor<T>::value &&
26 has_trivial_move_assign<T>::value &&
27 has_trivial_destructor<T>::value> { };
28
29 } /* boost */
30
31 #endif