mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
sprout/utility/pack.hpp 追加
This commit is contained in:
parent
9dbdf452d9
commit
a110b0ad0f
4 changed files with 116 additions and 2 deletions
|
@ -28,7 +28,7 @@ namespace sprout {
|
|||
std::ptrdiff_t First,
|
||||
std::ptrdiff_t Last,
|
||||
std::ptrdiff_t Step,
|
||||
std::ptrdiff_t ...Indexes
|
||||
std::ptrdiff_t... Indexes
|
||||
>
|
||||
struct index_range<First, Last, Step, sprout::index_tuple<Indexes...>, false>
|
||||
: public sprout::index_range<First + Step, Last, Step, sprout::index_tuple<Indexes..., First> >
|
||||
|
@ -49,7 +49,7 @@ namespace sprout {
|
|||
template<
|
||||
std::ptrdiff_t I,
|
||||
std::ptrdiff_t N,
|
||||
std::ptrdiff_t ...Indexes
|
||||
std::ptrdiff_t... Indexes
|
||||
>
|
||||
struct index_n<I, N, sprout::index_tuple<Indexes...>, false>
|
||||
: public sprout::index_n<I, N - 1, sprout::index_tuple<Indexes..., I> >
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue