]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/atomic/detail/type_traits/is_floating_point.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / atomic / detail / type_traits / is_floating_point.hpp
CommitLineData
11fdf7f2
TL
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) 2018 Andrey Semashev
7 */
8/*!
9 * \file atomic/detail/type_traits/is_floating_point.hpp
10 *
11 * This header defines \c is_floating_point type trait
12 */
13
14#ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_
15#define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_
16
17#include <boost/atomic/detail/config.hpp>
92f5a8d4
TL
18// Some versions of libstdc++ don't consider __float128 a floating point type. Use Boost.TypeTraits because of that.
19#if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_FLOAT128)
11fdf7f2
TL
20#include <type_traits>
21#else
22#include <boost/type_traits/is_floating_point.hpp>
23#endif
24
25#ifdef BOOST_HAS_PRAGMA_ONCE
26#pragma once
27#endif
28
29namespace boost {
30namespace atomics {
31namespace detail {
32
92f5a8d4 33#if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_FLOAT128)
11fdf7f2
TL
34using std::is_floating_point;
35#else
36using boost::is_floating_point;
37#endif
38
39} // namespace detail
40} // namespace atomics
41} // namespace boost
42
43#endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_