boost::burl::request_head::swap

Swap the contents.

Synopsis

void
swap(request_head& other) noexcept;

Description

The contents of the two headers are exchanged. No allocation occurs and no bytes are copied.

Views obtained from either header remain valid; they follow the contents into the other header. Iterators are invalidated: an iterator stays bound to the header it was obtained from, which now holds different fields.

If this == &other, this function call has no effect.

Complexity

Constant.

Exception Safety

No‐throw guarantee.

Parameters

Name

Description

other

The header to swap with.

Created with MrDocs