std::basic_string_view<CharT,Traits>::operator= (3) - Linux Manuals
std::basic_string_view<CharT,Traits>::operator=: std::basic_string_view<CharT,Traits>::operator=
NAME
std::basic_string_view<CharT,Traits>::operator= - std::basic_string_view<CharT,Traits>::operator=
Synopsis
constexpr basic_string_view& operator=( const basic_string_view& view ) noexcept = default; (since C++17)
Replaces the view with that of view.
Parameters
view - view to copy
Return value
*this
Complexity
Constant.
Example
// Run this code
Output:
See also
constructor (public member function)