Sha256: f9be56b02557e3c096434094601e1457b9662ac2409d92ee166bf2c087b285a9

Contents?: true

Size: 1.1 KB

Versions: 27

Compression:

Stored size: 1.1 KB

Contents

/*
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 * Copyright (c) 2018 Andrey Semashev
 */
/*!
 * \file   atomic/detail/type_traits/is_iec559.hpp
 *
 * This header defines \c is_iec559 type trait
 */

#ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_IEC559_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_IEC559_HPP_INCLUDED_

#include <limits>
#include <boost/atomic/detail/config.hpp>

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

namespace boost {
namespace atomics {
namespace detail {

template< typename T >
struct is_iec559
{
    static BOOST_CONSTEXPR_OR_CONST bool value = !!std::numeric_limits< T >::is_iec559;
};

#if defined(BOOST_HAS_FLOAT128)
// libstdc++ does not specialize numeric_limits for __float128
template< >
struct is_iec559< boost::float128_type >
{
    static BOOST_CONSTEXPR_OR_CONST bool value = true;
};
#endif // defined(BOOST_HAS_FLOAT128)

} // namespace detail
} // namespace atomics
} // namespace boost

#endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_IEC559_HPP_INCLUDED_

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/atomic/detail/type_traits/is_iec559.hpp