libpqxx
The C++ client library for PostgreSQL
row_ref-const_result_iterator.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_ROW_REF_CONST_RESULT_ITERATOR_HXX
2 #define PQXX_INTERNAL_GATES_ROW_REF_CONST_RESULT_ITERATOR_HXX
3 
5 
6 namespace pqxx
7 {
8 class row_ref;
9 } // namespace pqxx
10 
11 
12 namespace pqxx::internal::gate
13 {
15 {
17 
18  explicit constexpr row_ref_const_result_iterator(reference x) noexcept :
19  super(x)
20  {}
21 
22  void offset(result_difference_type d) { home().offset(d); }
23 };
24 } // namespace pqxx::internal::gate
25 #endif
Iterator for rows in a result. Use as result::const_iterator.
Definition: result_iterator.hxx:35
Base class for call gates.
Definition: callgate.hxx:55
Definition: row_ref-const_result_iterator.hxx:15
Lightweight reference to one row in a result.
Definition: row.hxx:57
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
int result_difference_type
Difference between result sizes.
Definition: types.hxx:80