Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
segments_encoded_ref::push_back

Append a segment.

Synopsis
void
push_back(
    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
this->back() == s
Exception Safety

Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

The string contains an invalid percent-encoding.

Parameters

Name

Description

s

The segment to append.


PrevUpHomeNext