...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Binds parameters to a statement (iterator range overload).
template<
class FieldViewFwdIterator
,
typename EnableIf = typename std::enable_if< detail::is_field_view_forward_iterator<FieldViewFwdIterator>::value>::type>
bound_statement_iterator_range< FieldViewFwdIterator >
bind(
FieldViewFwdIterator params_first,
FieldViewFwdIterator params_last) const;
Creates an object that packages *this
and the statement actual parameters,
represented as the iterator range [params_first,
params_last)
.
This object can be passed to connection::execute
, connection::start_execution
or their async
counterparts.
This function doesn't involve communication with the server.
this->valid() == true
Strong guarantee. Only throws if copy-constructing iterators throws.