mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add rebind_type container metafunction
This commit is contained in:
parent
802f2fbaed
commit
dd58135a93
7 changed files with 174 additions and 0 deletions
|
@ -89,6 +89,15 @@ namespace sprout {
|
|||
>::template rebind_size<Size>::type
|
||||
> type;
|
||||
};
|
||||
template<typename Type>
|
||||
struct rebind_type {
|
||||
public:
|
||||
typedef sprout::sub_array<
|
||||
typename sprout::container_transform_traits<
|
||||
typename std::remove_reference<Container>::type
|
||||
>::template rebind_type<Type>::type
|
||||
> type;
|
||||
};
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue