:relfileprefix: ../../../ [#boost-urls-segments_encoded_ref-push_back] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_encoded_ref.adoc[pass:[segments_encoded_ref]]::push_back Append a segment === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- void push_back(xref:boost/urls/pct_string_view.adoc[pct_string_view] s); ---- === Description This function appends a segment to the end of the path. Reserved characters in the string are automatically escaped. Escapes in the string are preserved. All end iterators are invalidated. [,cpp] ---- this->back() == s ---- === Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input. === Exceptions |=== | Name | Thrown on | `The` | string contains an invalid percent-encoding. |=== === Parameters |=== | Name | Description | *s* | The segment to append. |===