2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * Copyright (c) 2021 Andrey Semashev
9 * \file atomic/detail/type_traits/is_nothrow_default_constructible.hpp
11 * This header defines \c is_nothrow_default_constructible type trait
14 #ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_NOTHROW_DEFAULT_CONSTRUCTIBLE_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_NOTHROW_DEFAULT_CONSTRUCTIBLE_HPP_INCLUDED_
17 #include <boost/atomic/detail/config.hpp>
18 #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
19 #include <type_traits>
21 #include <boost/type_traits/has_nothrow_constructor.hpp>
24 #ifdef BOOST_HAS_PRAGMA_ONCE
32 #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
33 using std::is_nothrow_default_constructible;
34 #elif !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
35 template< typename T >
36 using is_nothrow_default_constructible = boost::has_nothrow_constructor< T >;
38 template< typename T >
39 struct is_nothrow_default_constructible : public boost::has_nothrow_constructor< T > {};
43 } // namespace atomics
46 #endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_NOTHROW_DEFAULT_CONSTRUCTIBLE_HPP_INCLUDED_