Sindbad~EG File Manager

Current Path : /usr/local/include/boost/endian/detail/
Upload File :
Current File : //usr/local/include/boost/endian/detail/is_integral.hpp

#ifndef BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED
#define BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED

// Copyright 2023 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt

#include <type_traits>

namespace boost
{
namespace endian
{
namespace detail
{

template<class T> struct is_integral: std::is_integral<T>
{
};

#if defined(__SIZEOF_INT128__)

template<> struct is_integral<__int128_t>: std::true_type
{
};

template<> struct is_integral<__uint128_t>: std::true_type
{
};

#endif

} // namespace detail
} // namespace endian
} // namespace boost

#endif  // BOOST_ENDIAN_DETAIL_IS_INTEGRAL_HPP_INCLUDED

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists