2013-09-24 01:05:47 +00:00
|
|
|
/*=============================================================================
|
2014-01-08 07:48:12 +00:00
|
|
|
Copyright (c) 2011-2014 Bolero MURAKAMI
|
2013-09-24 01:05:47 +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)
|
|
|
|
=============================================================================*/
|
|
|
|
#ifndef SPROUT_DARKROOM_ACCESS_TRAITS_HPP
|
|
|
|
#define SPROUT_DARKROOM_ACCESS_TRAITS_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/tuple/tuple.hpp>
|
2013-11-22 12:11:08 +00:00
|
|
|
#include <sprout/type_traits/integral_constant.hpp>
|
2013-09-24 01:05:47 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace darkroom {
|
|
|
|
namespace access {
|
|
|
|
//
|
|
|
|
// is_tuple
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct is_tuple
|
2013-11-22 12:11:08 +00:00
|
|
|
: public sprout::false_type
|
2013-09-24 01:05:47 +00:00
|
|
|
{};
|
|
|
|
template<typename T>
|
|
|
|
struct is_tuple<T const>
|
|
|
|
: public sprout::darkroom::access::is_tuple<T>
|
|
|
|
{};
|
|
|
|
template<typename T>
|
|
|
|
struct is_tuple<T volatile>
|
|
|
|
: public sprout::darkroom::access::is_tuple<T>
|
|
|
|
{};
|
|
|
|
template<typename T>
|
|
|
|
struct is_tuple<T const volatile>
|
|
|
|
: public sprout::darkroom::access::is_tuple<T>
|
|
|
|
{};
|
|
|
|
template<typename... Types>
|
|
|
|
struct is_tuple<sprout::tuples::tuple<Types...> >
|
2013-11-22 12:11:08 +00:00
|
|
|
: public sprout::true_type
|
2013-09-24 01:05:47 +00:00
|
|
|
{};
|
|
|
|
} // namespace access
|
|
|
|
} // namespace darkroom
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_DARKROOM_ACCESS_TRAITS_HPP
|