/*============================================================================= Copyright (c) 2011-2013 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_STRING_CONTAINER_HPP #define SPROUT_STRING_CONTAINER_HPP #include #include #include #include #include namespace sprout { // // container_construct_traits // template struct container_construct_traits > { public: typedef sprout::basic_string copied_type; public: template static SPROUT_CONSTEXPR copied_type deep_copy(Cont&& cont) { return sprout::forward(cont); } template static SPROUT_CONSTEXPR copied_type make(Args&&... args) { typedef sprout::detail::make_construct_impl impl_type; return impl_type::make(sprout::forward(args)...); } template static SPROUT_CONSTEXPR copied_type remake(Cont&&, typename sprout::container_traits >::difference_type size, Args&&... args) { typedef sprout::detail::make_construct_impl impl_type; return impl_type::make(static_cast(size), sprout::forward(args)...); } }; // // container_transform_traits // template struct container_transform_traits > { public: template >::size_type Size> struct rebind_size { public: typedef sprout::basic_string type; }; }; } // namespace sprout #endif // #ifndef SPROUT_STRING_CONTAINER_HPP