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

PrevUpHomeNext
basic_format_context::append_value

(Inherited from format_context_base)

Formats a value and adds it to the output string (low level).

Synopsis
format_context_base&
append_value(
    formattable_ref value,
    constant_string_view format_specifiers = string_view());
Description

value is formatted according to its type, applying the passed format specifiers. If formatting generates an error (for instance, a string with invalid encoding is passed), the error state may be set.

This is a low level function. In general, prefer format_sql_to, instead.

Exception safety

Basic guarantee. Memory allocations may throw.

Errors

The error state may be updated with the following errors:


PrevUpHomeNext