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

◆ ToList()

template<SelecterType SELECTER>
std::list< value_type > sqt::Result< SELECTER >::ToList ( ) const

Converts all result elements to a std::list.

Returns
A std::list 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::list.

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