mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add container_transform_traits specialization
This commit is contained in:
parent
0abea1678c
commit
b4da8f5776
5 changed files with 43 additions and 0 deletions
|
@ -38,6 +38,19 @@ namespace sprout {
|
|||
return copied_type(SPROUT_FORWARD(Args, args)...);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// container_transform_traits
|
||||
//
|
||||
template<typename T>
|
||||
struct container_transform_traits<sprout::optional<T> > {
|
||||
public:
|
||||
template<typename Type>
|
||||
struct rebind_type {
|
||||
public:
|
||||
typedef sprout::optional<Type> type;
|
||||
};
|
||||
};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_OPTIONAL_CONTAINER_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue