[#boost-urls-segments_encoded_ref-push_back] = xref:boost/urls/segments_encoded_ref/push_back.adoc[boost::urls::segments_encoded_ref::push_back] :relfileprefix: ../../../ :mrdocs: Append a segment == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_ref.hpp#L757[boost/url/segments_encoded_ref.hpp]>` [source,cpp,subs="verbatim,replacements,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. == Postconditions [,cpp] ---- this->back() == s ---- == Exception Safety Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input. == Exceptions [cols=2] |=== | Name | Thrown on | `system_error` | The string contains an invalid percent‐encoding. |=== == Parameters [cols=2] |=== | Name | Description | *s* | The segment to append. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#