:relfileprefix: ../../../
[#BF9005DAF6137A4398193846ECD95ED0FD1FC14E]

= Function segments_base::buffer

pass:v,q[Return the referenced character buffer.]


== Synopsis

Declared in header `</boost/url/segments_base.hpp#L155[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

pass:v,q[This function returns the character] pass:v,q[buffer referenced by the view.]
pass:v,q[The returned string may contain]
pass:v,q[percent escapes.]

=== Example
[,cpp]
----
assert( url_view( "/path/to/file.txt" ).segments().buffer() == "/path/to/file.txt" );
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `pct_string_view` 




