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

Public Member Functions

 syscache (const D &...key)
 
 syscache (::SysCacheIdentifier cache_id, const D &...key)
 
template<convertible_from_datum V>
std::optional< V > get_attribute (int attr)
 Get an attribute by index.
 

Public Attributes

decltype(*std::declval< T >()) operator* )()
 
const decltype(*std::declval< T >()) operator* )() const
 

Member Function Documentation

◆ get_attribute()

template<syscached T, convertible_into_datum... D>
template<convertible_from_datum V>
std::optional< V > cppgres::syscache< T, D >::get_attribute ( int  attr)
inline

Get an attribute by index.

Template Parameters
Vtype to convert to
Parameters
attrattribute index
Returns

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