Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
CommonInsertersAndExtractors.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include <string>
5
7
8 template <typename charT, typename Traits>
9 basic_istream<charT, Traits>& operator>> (basic_istream<charT, Traits>& in, String& to)
10 {
11 basic_string<charT, Traits> tmp;
12 in >> tmp;
13 to = tmp;
14 return in;
15 }
16 template <typename charT, typename Traits>
17 basic_ostream<charT, Traits>& operator<< (basic_ostream<charT, Traits>& out, const String& from)
18 {
19 basic_string<charT, Traits> tmp = from.As<basic_string<charT, Traits>> ();
20 out << tmp;
21 return out;
22 }
23
24}