mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
|
/*=============================================================================
|
||
|
Copyright (c) 2011-2013 Bolero MURAKAMI
|
||
|
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 <type_traits>
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/tuple/tuple.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
namespace darkroom {
|
||
|
namespace access {
|
||
|
//
|
||
|
// is_tuple
|
||
|
//
|
||
|
template<typename T>
|
||
|
struct is_tuple
|
||
|
: public std::false_type
|
||
|
{};
|
||
|
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...> >
|
||
|
: public std::true_type
|
||
|
{};
|
||
|
} // namespace access
|
||
|
} // namespace darkroom
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_DARKROOM_ACCESS_TRAITS_HPP
|