support for N3658 (Compile-time integer sequences): index_tuple

rename: integer_seq -> integer_sequence, make_integer_sequence -> make_integer_sequence
add unsigned-index sequence: index_sequence(alias), make_index_sequence, index_sequence_for
add: integer_pack, index_pack
This commit is contained in:
bolero-MURAKAMI 2013-05-10 19:52:39 +09:00
parent a3aedcf136
commit bb36ef6e8b
24 changed files with 196 additions and 83 deletions

View file

@ -181,7 +181,7 @@ namespace sprout {
SPROUT_CONSTEXPR auto operator()(CVArg& arg, sprout::tuples::tuple<Args...>& tuple) const volatile
-> decltype(arg(std::declval<Args>()...))
{
return call(arg, tuple, sprout::make_index_tuple<sizeof...(Args)>::make());
return call(arg, tuple, sprout::index_pack<Args...>::make());
}
};
template<typename Arg>
@ -277,7 +277,7 @@ namespace sprout {
{
private:
typedef binder self_type;
typedef typename sprout::make_index_tuple<sizeof...(BoundArgs)>::type bound_indexes;
typedef typename sprout::index_pack<BoundArgs...>::type bound_indexes;
private:
Functor f_;
sprout::tuples::tuple<BoundArgs...> bound_args_;
@ -385,7 +385,7 @@ namespace sprout {
class bind_result<Result, Functor(BoundArgs...)> {
private:
typedef bind_result self_type;
typedef typename sprout::make_index_tuple<sizeof...(BoundArgs)>::type bound_indexes;
typedef typename sprout::index_pack<BoundArgs...>::type bound_indexes;
private:
template<typename Res>
struct enable_if_void