W3cubDocs

/C++

operator<<(std::basic_string_view)

Defined in header <string_view>
template <class CharT, class Traits>
std::basic_ostream<CharT, Traits>&
    operator<<(std::basic_ostream<CharT, Traits>& os, 
               std::basic_string_view <CharT, Traits> v);
(since C++17)

Equivalent to os << v.to_string().

Parameters

os - a character output stream
v - the view to be inserted

Return value

os.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/string/basic_string_view/operator_ltlt