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_regex::operator=(3) C++ Standard Libary std::basic_regex::operator=(3)

std::basic_regex::operator= - std::basic_regex::operator=


Defined in header <regex>
basic_regex& operator=( const basic_regex& other ); (1) (since C++11)
basic_regex& operator=( basic_regex&& other ) noexcept; (2) (since C++11)
basic_regex& operator=( const CharT* ptr ); (3) (since C++11)
basic_regex& operator=( std::initializer_list<CharT> il ); (4) (since C++11)
template< class ST, class SA > (5) (since C++11)
basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p );


Assigns the contents.


1) Copy assignment operator. Assigns the contents of other. Equivalent to
assign(other);.
2) Move assignment operator. Assigns the contents of other using move semantics.
other is in valid, but unspecified state after the operation. Equivalent to
assign(other);.
3) Assigns a null-terminated character string pointed to by ptr. Equivalent to
assign(ptr);.
4) Assigns characters contained in initializer list il. Equivalent to assign(il);.
5) Assigns the contents of the string p. Equivalent to assign(p);.


other - another regex object
ptr - pointer to a null-terminated character string
il - initializer list containing characters to assign
p - string containing characters to assign


*this.


1) May throw implementation-defined exceptions.
3-5) std::regex_error if the supplied regular expression is not valid. The object is
not modified in that case.


assign assigns the contents
(public member function)

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.