buffer

Return the referenced character buffer.

Synopsis

pct_string_view
buffer() const noexcept;

Declared in file <include/boost/url/segments_encoded_base.hpp> on line 158

Defined in file <src/segments_encoded_base.cpp> on line 58

Description

This function returns the character buffer referenced by the view. The returned string may contain percent escapes.

Example

assert( url_view( "/path/to/file.txt" ).encoded_segments().buffer() == "/path/to/file.txt" );

Complexity

Constant.

Exception Safety

Throws nothing.