1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

adapt rational tuple and container interface

This commit is contained in:
bolero-MURAKAMI 2016-04-07 00:37:46 +09:00
parent 35305c18fb
commit a7532930e3
5 changed files with 277 additions and 0 deletions

View file

@ -109,6 +109,19 @@ namespace sprout {
return copied_type(SPROUT_FORWARD(Args, args)...);
}
};
//
// container_transform_traits
//
template<typename T>
struct container_transform_traits<std::complex<T> > {
public:
template<typename Type>
struct rebind_type {
public:
typedef std::complex<Type> type;
};
};
} // namespace sprout
#endif // #ifndef SPROUT_CONTAINER_STD_COMPLEX_HPP