boost::urls::segments_encoded_ref::url :: Boost Libraries Documentation

# boost::urls::segments_encoded_ref::url

Return the referenced url

## Synopsis

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

    url_base&
    url() const noexcept;

## Description

This function returns the url referenced by the view.

## Example

    url u( "/path/to/file.txt" );

    assert( &u.encoded_segments().url() == &u );

## Exception Safety

Throws nothing.

## Return Value

A reference to the url.

Created with MrDocs