-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
is_bool.hpp
// Distributed under the Boost Software License Version 1.0 https://www.boost.org/LICENSE_1_0.txt
// Copyright Gero Peterhoff
#ifndef BOOST_TYPE_TRAITS_IS_BOOL_HPP
#define BOOST_TYPE_TRAITS_IS_BOOL_HPP
#include <boost/type_traits/remove_cvref.hpp>
#include <boost/type_traits/is_same.hpp>
namespace boost
{
template <typename Type> struct is_bool : public integral_constant
<
bool,
is_same<typename remove_cvref<Type>::type, bool>::value
> {};
#if !defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template <typename Type> inline constexpr bool is_bool_v = is_bool<Type>::value;
#endif
} // boost
#endif // BOOST_TYPE_TRAITS_IS_BOOL_HPP
Metadata
Metadata
Assignees
Labels
No labels