[#boost-urls-segments_ref-push_back]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments&lowbar;ref]::push&lowbar;back
:relfileprefix: ../../../
:mrdocs:

Append a segment

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_ref.hpp#L701[boost&sol;url&sol;segments&lowbar;ref&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
push&lowbar;back(core::string&lowbar;view s);
----

== Description

This function appends a segment to the end of the path&period; Reserved characters in the string are automatically escaped&period;

All end iterators are invalidated&period;

== Postconditions
[,cpp]
----
this->back() == s
----
== Exception Safety
Strong guarantee&period; Calls to allocate may throw&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *s*
| The segment to append&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
