]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/atomic/detail/type_traits/is_integral.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / atomic / detail / type_traits / is_integral.hpp
CommitLineData
b32b8144
FG
1/*
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)
5 *
6 * Copyright (c) 2017 Andrey Semashev
7 */
8/*!
9 * \file atomic/detail/type_traits/is_integral.hpp
10 *
11 * This header defines \c is_integral type trait
12 */
13
14#ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_INTEGRAL_HPP_INCLUDED_
15#define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_INTEGRAL_HPP_INCLUDED_
16
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_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_INT128)
20#include <type_traits>
21#else
22#include <boost/type_traits/is_integral.hpp>
23#endif
24
25#ifdef BOOST_HAS_PRAGMA_ONCE
26#pragma once
27#endif
28
29namespace boost {
30namespace atomics {
31namespace detail {
32
33#if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_INT128)
34using std::is_integral;
35#else
36using boost::is_integral;
37#endif
38
39} // namespace detail
40} // namespace atomics
41} // namespace boost
42
43#endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_INTEGRAL_HPP_INCLUDED_