Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

formattable_ref

(EXPERIMENTAL) A type-erased reference to a Formattable value.

Synopsis

Defined in header <boost/mysql/format_sql.hpp>

class formattable_ref
Member Functions

Name

Description

formattable_ref [constructor]

Constructor.

Description

This type can hold references to any value that satisfies the Formattable concept. The formattable_ref type itself satisfies Formattable, and can thus be used as an argument to format functions.

Object lifetimes

This is a non-owning type. It should be only used as a function argument, to avoid lifetime issues.


PrevUpHomeNext