Constructor

Synopsis

Declared in header </boost/url/segments_ref.hpp#L124[boost/url/segments_ref.hpp,window=blank_]>

constexpr
segments_ref(const segments_ref& other) = default;

Description

After construction, both views reference the same url. Ownership is not transferred; the caller is responsible for ensuring the lifetime of the url extends until it is no longer referenced.

Postconditions

&this->url() == &other.url();

Complexity

Constant.

Exception Safety

Throws nothing.

Return Value

  • void

Parameters

Name Type

other

``