mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
sprout::index_t 追加
This commit is contained in:
parent
c9471df964
commit
d5dcbaf4b2
44 changed files with 80 additions and 101 deletions
|
@ -21,7 +21,7 @@ namespace sprout {
|
|||
typedef sprout::tuples::tuple<Types...> tuple_type;;
|
||||
typedef sprout::types::type_tuple<typename std::decay<Types>::type...> uncvref_tuple_type;;
|
||||
private:
|
||||
template<typename T, std::ptrdiff_t... Indexes>
|
||||
template<typename T, sprout::index_t... Indexes>
|
||||
static SPROUT_CONSTEXPR tuple_type init(T&& operand, sprout::index_tuple<Indexes...>) {
|
||||
return sprout::tuples::make_clone<tuple_type>(
|
||||
typename sprout::tuples::tuple_element<Indexes, tuple_type>::type()...,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue