ThinSQLite++
A thin, safe and convenient modern C++ wrapper for the SQLite API.
Loading...
Searching...
No Matches
row_range Class Reference

An input range for statement results. More...

Public Types

using value_type = row
using size_type = int
using difference_type = int
using reference = value_type
using pointer = void
using const_iterator = row_iterator
using iterator = const_iterator

Public Member Functions

 row_range (statement *owner)
 Create an instance referring to a given statement.
 row_range (std::unique_ptr< statement > &owner)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const_iterator begin () const noexcept
const_iterator cbegin () const noexcept
const_iterator end () const noexcept
const_iterator cend () const noexcept

Detailed Description

An input range for statement results.

This class stores the statement by reference. Thus statement must remain valid for the lifetime duration of this class.

#include <thinsqlitepp/statement.hpp>

Constructor & Destructor Documentation

◆ row_range()

row_range ( statement * owner)
inline

Create an instance referring to a given statement.

Note that the iterator mutates the statement while iterating, hence the argument must be non-const.