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 a snapshot of the master branch, built from commit ba9a942153.
PrevUpHomeNext
http::basic_fields::insert (1 of 8 overloads)

Insert a field.

Synopsis
void
insert(
    field name,
    string_view value);
Description

If one or more fields with the same name already exist, the new field will be inserted after the last field with the matching name, in serialization order. The value can be an empty string.

Parameters

Name

Description

name

The field name.

value

The field value.

Exceptions

Type

Thrown On

boost::system::system_error

Thrown if an error occurs:


PrevUpHomeNext