1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/weed/traits/expr/is_expr.hpp

47 lines
1.4 KiB
C++
Raw Normal View History

2013-08-08 09:54:33 +00:00
/*=============================================================================
2014-01-08 07:48:12 +00:00
Copyright (c) 2011-2014 Bolero MURAKAMI
2013-08-08 09:54:33 +00:00
https://github.com/bolero-MURAKAMI/Sprout
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)
=============================================================================*/
2011-11-13 08:54:38 +00:00
#ifndef SPROUT_WEED_TRAITS_EXPR_IS_EXPR_HPP
#define SPROUT_WEED_TRAITS_EXPR_IS_EXPR_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/type_traits/integral_constant.hpp>
#include <sprout/weed/expr/expr_fwd.hpp>
2011-11-13 08:54:38 +00:00
namespace sprout {
namespace weed {
namespace traits {
//
// is_expr
//
template<typename T>
struct is_expr
: public sprout::false_type
2011-11-13 08:54:38 +00:00
{};
template<typename T>
struct is_expr<T const>
: public sprout::weed::traits::is_expr<T>
{};
2012-04-13 12:23:49 +00:00
template<typename T>
struct is_expr<T volatile>
: public sprout::weed::traits::is_expr<T>
{};
template<typename T>
struct is_expr<T const volatile>
: public sprout::weed::traits::is_expr<T>
{};
2011-11-13 08:54:38 +00:00
template<typename Tag, typename... Args>
struct is_expr<sprout::weed::expr<Tag, Args...> >
: public sprout::true_type
2011-11-13 08:54:38 +00:00
{};
} // namespace traits
} // namespace weed
} // namespace sprout
#endif // #ifndef SPROUT_WEED_TRAITS_EXPR_IS_EXPR_HPP