Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::list< T > Struct Template Reference

Typed, range-for-iterable view over a PostgreSQL ::List. More...

#include <list.hpp>

Classes

struct  iterator
 

Public Member Functions

 list (::List *l)
 
iterator begin () const
 
iterator end () const
 
size_t size () const
 
bool empty () const
 
 operator::List * () const
 

Detailed Description

template<typename T = void *>
struct cppgres::list< T >

Typed, range-for-iterable view over a PostgreSQL ::List.

The element type selects the cell accessor: pointer types read lfirst, int reads lfirst_int, ::Oid reads lfirst_oid.

A NIL (null) list is an empty range.

for (auto *tle : cppgres::list<TargetEntry *>(query->targetList)) { ... }
Typed, range-for-iterable view over a PostgreSQL ::List.
Definition: list.hpp:25

The documentation for this struct was generated from the following file: