:relfileprefix: ../../../
[#boost-urls-segments_ref-push_back]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_ref.adoc[pass:[segments_ref]]::push_back


Append a segment


== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
void
push_back(core::string_view s);
----

== Description


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



All end iterators are invalidated.

=== Postconditions
[,cpp]
----
this->back() == s
----

=== Exception Safety

Strong guarantee.
Calls to allocate may throw.





== Parameters

|===
| Name | Description 

| *s*
| 
The segment to append.

|===




