Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

operator<<(std::experimental::basic_string_view)

Equivalent to os << v.to_string().

NotebookLM
Defined in header <experimental/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);
(library fundamentals TS)

Equivalent to os << v.to_string().

Parameters

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

Return value

os

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.