:relfileprefix: ../../../
[#boost-urls-segments_base-buffer]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_base.adoc[pass:[segments_base]]::buffer


Return the referenced character buffer.


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_base.hpp#L175[boost/url/segments_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/pct_string_view.adoc[pct_string_view]
buffer() const noexcept;
----

=== Description


This function returns the character
buffer referenced by the view.
The returned string may contain
percent escapes.
[,cpp]
----
assert( url_view( "/path/to/file.txt" ).segments().buffer() == "/path/to/file.txt" );
----

=== Constant.

=== Throws nothing.








