/usr/include/boost/multiprecision/traits
Edit: /usr/include/boost/multiprecision/traits/is_byte_container.hpp (1439B)
///////////////////////////////////////////////////////////////////////////////
// Copyright 2015 John Maddock. 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)
#ifndef BOOST_IS_BYTE_CONTAINER_HPP
#define BOOST_IS_BYTE_CONTAINER_HPP
#include
#include
#include
#include
namespace boost { namespace multiprecision { namespace detail {
BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_member_const_iterator, const_iterator, false)
template
struct is_byte_container_imp
{
// Note: Don't use C::value_type as this is a rather widespread typedef, even for non-range types
typedef typename boost::remove_cv::value_type>::type container_value_type;
static const bool value = boost::is_integral::value && (sizeof(container_value_type) == 1);
};
template
struct is_byte_container_imp : public boost::false_type
{};
template
struct is_byte_container : public is_byte_container_imp::value>
{};
}}} // namespace boost::multiprecision::detail
#endif // BOOST_IS_BYTE_CONTAINER_HPP