1/*
2Copyright 2020 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under the Boost Software License,
6Version 1.0. (See accompanying file LICENSE_1_0.txt
7or 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
17namespace boost {
18
19template<class T>
20struct is_trivially_copyable
21 : integral_constant<bool, has_trivial_copy<T>::value &&
22 has_trivial_assign<T>::value &&
23 has_trivial_destructor<T>::value> { };
24
25} /* boost */
26
27#endif
28

source code of include/boost/type_traits/is_trivially_copyable.hpp