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) 2017 Andrey Semashev
9 * \file atomic/detail/type_traits/is_signed.hpp
11 * This header defines \c is_signed type trait
14 #ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_SIGNED_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_SIGNED_HPP_INCLUDED_
17 #include <boost/atomic/detail/config.hpp>
18 // Some versions of libstdc++ don't consider __int128 an integral type. Use Boost.TypeTraits because of that.
19 #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_INT128)
20 #include <type_traits>
22 #include <boost/type_traits/is_signed.hpp>
25 #ifdef BOOST_HAS_PRAGMA_ONCE
33 #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_INT128)
36 using boost::is_signed;
40 } // namespace atomics
43 #endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_SIGNED_HPP_INCLUDED_