...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A type T
is Formattable
if it can be passed as a format
argument to SQL formatting functions, like format_sql
or format_context_base::append_value
.
Formally, a type T
satisfies
Formattable
if any of the
following are true:
WritableField
.
This includes scalar types and optionals.
identifier
.
formatter
has been specialized for T
.
For a reference table on built-in formattable types, see this section.