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 0863267446.
PrevUpHomeNext
statement::bind (1 of 3 overloads)

Binds parameters to a statement.

Synopsis
template<
    class... T>
bound_statement_tuple< std::tuple< see-below > >
bind(
    T&&... params) const;
Description

Creates an object that packages *this and the statement actual parameters params. This object can be passed to connection::execute, connection::start_execution and their async counterparts.

The parameters are copied into a std::tuple by using std::make_tuple. This function only participates in overload resolution if std::make_tuple(FWD(args)...) yields a WritableFieldTuple. Equivalent to this->bind(std::make_tuple(std::forward<T>(params)...)).

This function doesn't involve communication with the server.

Preconditions

this->valid() == true

Exception safety

Strong guarantee. Only throws if constructing any of the internal tuple elements throws.


PrevUpHomeNext