boost::urls::url::operator= :: Boost Libraries Documentation

# boost::urls::url::operator=

Assignment

## Synopsis

Declared in `<boost/url/url.hpp>`

    url&
    operator=(url&& u) noexcept;

## Description

The contents of `u` are transferred to `this`, including the underlying character buffer. The previous contents of `this` are destroyed. After assignment, the moved‐from object is as if default constructed.

## Postconditions

    u.empty() == true

## Complexity

Constant.

## Exception Safety

Throws nothing.

## Return Value

A reference to this object.

## Parameters

Name | Description
u | The url to assign from.

Created with MrDocs