mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
erace unnecessary specialization
This commit is contained in:
parent
7562e23307
commit
b25f91f954
4 changed files with 0 additions and 89 deletions
|
@ -15,25 +15,6 @@
|
|||
#include <sprout/type/rebind_types.hpp>
|
||||
#include <sprout/utility/forward.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace types {
|
||||
//
|
||||
// rebind_types
|
||||
//
|
||||
template<typename... Ts>
|
||||
struct rebind_types<sprout::tuples::tuple<Ts...> > {
|
||||
public:
|
||||
template<typename... Types>
|
||||
struct apply {
|
||||
public:
|
||||
typedef sprout::tuples::tuple<Types...> type;
|
||||
};
|
||||
};
|
||||
} // namespace types
|
||||
|
||||
using sprout::types::rebind_types;
|
||||
} // namespace sprout
|
||||
|
||||
namespace sprout {
|
||||
namespace tuples {
|
||||
//
|
||||
|
|
|
@ -21,6 +21,5 @@
|
|||
#include <sprout/type/seq/algorithm.hpp>
|
||||
#include <sprout/type/operation.hpp>
|
||||
#include <sprout/type/print.hpp>
|
||||
#include <sprout/type/index_tuple.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_TYPE_HPP
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2014 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_TYPE_INDEX_TUPLE_HPP
|
||||
#define SPROUT_TYPE_INDEX_TUPLE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_sequence.hpp>
|
||||
#include <sprout/type/rebind_types.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace types {
|
||||
//
|
||||
// rebind_types
|
||||
//
|
||||
template<typename T, T... Is>
|
||||
struct rebind_types<sprout::integer_sequence<T, Is...> > {
|
||||
public:
|
||||
template<typename... Types>
|
||||
struct apply {
|
||||
public:
|
||||
typedef sprout::integer_sequence<T, Types::value...> type;
|
||||
};
|
||||
};
|
||||
|
||||
#if !(SPROUT_USE_TEMPLATE_ALIASES && !defined(SPROUT_WORKAROUND_NO_TEMPLATE_ARGUMENT_DEDUCTION_WITH_ALIASES))
|
||||
//
|
||||
// rebind_types
|
||||
//
|
||||
template<sprout::index_t... Is>
|
||||
struct rebind_types<sprout::index_tuple<Is...> > {
|
||||
public:
|
||||
template<typename... Types>
|
||||
struct apply {
|
||||
public:
|
||||
typedef sprout::index_tuple<Types::value...> type;
|
||||
};
|
||||
};
|
||||
template<sprout::uindex_t... Is>
|
||||
struct rebind_types<sprout::uindex_tuple<Is...> > {
|
||||
public:
|
||||
template<typename... Types>
|
||||
struct apply {
|
||||
public:
|
||||
typedef sprout::uindex_tuple<Types::value...> type;
|
||||
};
|
||||
};
|
||||
#endif // #if !(SPROUT_USE_TEMPLATE_ALIASES && !defined(SPROUT_WORKAROUND_NO_TEMPLATE_ARGUMENT_DEDUCTION_WITH_ALIASES))
|
||||
} // namespace types
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_TYPE_INDEX_TUPLE_HPP
|
|
@ -39,19 +39,6 @@ namespace sprout {
|
|||
template<typename... Types>
|
||||
SPROUT_CONSTEXPR_OR_CONST std::size_t sprout::types::type_tuple<Types...>::static_size;
|
||||
|
||||
//
|
||||
// rebind_types
|
||||
//
|
||||
template<typename... Ts>
|
||||
struct rebind_types<sprout::types::type_tuple<Ts...> > {
|
||||
public:
|
||||
template<typename... Types>
|
||||
struct apply {
|
||||
public:
|
||||
typedef sprout::types::type_tuple<Types...> type;
|
||||
};
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
template<typename Tup>
|
||||
struct head_element;
|
||||
|
|
Loading…
Reference in a new issue