std::experi...w::operator=(3)
π NAME π
Okay so bestie, this page is std::experi...w::operator=(3) from the C++ Standard Libary manual (that spelling is literally in the header, Iβm not doing that π).
The NAME block is giving double trouble:
std::experimental::basic_string_view::operator= - std::experimental::basic_string_view::operator=
Yes, it says it twice. Iconic. Periodt. π
β¨ Synopsis β¨
basic_string_view& operator=( const basic_string_view& (library
fundamentals TS)
view ) noexcept = default;
Replaces the view with that of view. Thatβs the whole vibe. π¦
πΈ Parameters πΈ
viewβ view to copy π
π Return value π
*this β thatβs what comes back, no cap. π«Ά
β Complexity β
Constant. Lowkey perfect. β¨
π§ Example π§
// Run this code
#include <iostream>
#include <experimental/string_view>
int main()
{
std::experimental::string_view v = "Hello, world";
v = v.substr(7);
std::cout << v << '\n';
}
Output:
world
Ate. π
π₯ See also π₯
- constructor β constructs a
basic_string_view(public member function)
π Category: π
Noindexed pages
Made with π from the http://cppreference.com source, version/date 2024.06.10, and the footer title std::experi...w::operator=(3). Bye bestie, go assign some views responsibly ππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms