Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::abstract_memory_context Struct Referenceabstract
Inheritance diagram for cppgres::abstract_memory_context:
cppgres::tracking_memory_context< cppgres::memory_context > cppgres::always_current_memory_context cppgres::memory_context cppgres::owned_memory_context cppgres::tracking_memory_context< C > cppgres::alloc_set_memory_context

Classes

struct  memory_context_execution
 

Public Member Functions

template<typename T = std::byte>
T * alloc (size_t n=1)
 
template<typename T = void>
void free (T *ptr)
 
void reset ()
 
bool operator== (abstract_memory_context &c) noexcept
 
bool operator!= (abstract_memory_context &c) noexcept
 
 operator::MemoryContext ()
 
::MemoryContextCallback * register_reset_callback (::MemoryContextCallbackFunction func, void *arg)
 
void delete_context ()
 
auto operator() (auto thunk)
 

Protected Member Functions

virtual ::MemoryContext _memory_context ()=0
 

Member Function Documentation

◆ operator()()

auto cppgres::abstract_memory_context::operator() ( auto  thunk)
inline

Execute a callable within this memory context, respecting exceptions


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