GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::basic_string_view::operator=(3) C++ Standard Libary std::basic_string_view::operator=(3)

std::basic_string_view::operator= - std::basic_string_view::operator=


constexpr basic_string_view& operator=( const basic_string_view& view (since C++17)
) noexcept = default;


Replaces the view with that of view.


view - view to copy


*this


Constant.

// Run this code


#include <iostream>
#include <string_view>
int main()
{
std::string_view v = "Hello, world";
v = v.substr(7);
std::cout << v << '\n';
}


world


constructor constructs a basic_string_view
(C++17) (public member function)
operator= assigns values to the string
(public member function of std::basic_string<CharT,Traits,Allocator>)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.