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 develop branch, built from commit 73ecb34d2b.
PrevUpHomeNext
http::basic_fields::insert (5 of 6 overloads)

Insert a field.

Synopsis
void
insert(
    field name,
    string_view name_string,
    string_view const& 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.

Parameters

Name

Description

name

The field name.

name_string

The literal text corresponding to the field name. If name != field::unknown, then this value must be equal to to_string(name) using a case-insensitive comparison, otherwise the behavior is undefined.

value

The value of the field, as a string_view


PrevUpHomeNext