![]() |
Home | Libraries | People | FAQ | More |
Swap the contents.
void swap( url& other);
Exchanges the contents of this url with another url. All views, iterators
and references remain valid. If this
== &other
, this function call has no effect.
[link url.ref.boost__urls__url.url `url`] u1( "https://www.example.com" ); [link url.ref.boost__urls__url.url `url`] u2( "https://www.boost.org" ); u1.swap(u2); assert(u1 == "https://www.boost.org" ); assert(u2 == "https://www.example.com" );
Constant
Throws nothing.
Name |
Description |
---|---|
|
The object to swap with |