SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ ToDeque()

template<SelecterType SELECTER>
std::deque< value_type > sqt::Result< SELECTER >::ToDeque ( ) const

Converts all result elements to a std::deque.

Returns
A std::deque contains all result elements.
Exceptions
sqt::SQLErrorThrown if the iteration over the result fails.

This method is a shorthand for iterating over all elements in the result and storing them in a std::deque.

Warning
The result instance is consumed after the conversion and cannot be used again.
See also
sqt::Result<>::begin()
sqt::Result<>::ToList()
sqt::Result<>::ToVector()