mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add new directory sprout/algorithm/cxx14/
This commit is contained in:
parent
39d60a514f
commit
040278bd11
76 changed files with 1165 additions and 761 deletions
|
@ -9,9 +9,9 @@
|
|||
#define SPROUT_UTILITY_STRING_IO_HPP
|
||||
|
||||
#include <iterator>
|
||||
#include <algorithm>
|
||||
#include <ios>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/algorithm/cxx14/copy.hpp>
|
||||
#include <sprout/utility/string_ref/string_ref.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -21,7 +21,7 @@ namespace sprout {
|
|||
template<typename T, typename Traits, typename StreamTraits>
|
||||
inline std::basic_ostream<T, StreamTraits>&
|
||||
operator<<(std::basic_ostream<T, StreamTraits>& lhs, sprout::basic_string_ref<T, Traits> const& rhs) {
|
||||
std::copy(rhs.begin(), rhs.end(), std::ostreambuf_iterator<T, StreamTraits>(lhs));
|
||||
sprout::copy(rhs.begin(), rhs.end(), std::ostreambuf_iterator<T, StreamTraits>(lhs));
|
||||
return lhs;
|
||||
}
|
||||
} // namespace sprout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue