9#ifndef HEADER_SQLITEPP_MEMORY_IFACE_INCLUDED
10#define HEADER_SQLITEPP_MEMORY_IFACE_INCLUDED
33 void operator()(T * mem)
const noexcept
58 inline void * sqlite_allocate_nothrow(
std::size_t size)
noexcept
63 #if SQLITE_VERSION_NUMBER >= SQLITEPP_SQLITE_VERSION(3, 8, 7)
79 if (
auto ret = sqlite_allocate_nothrow(size))
102 {
return sqlite_allocate_nothrow(size); }
105 {
return sqlite_allocate_nothrow(size); }
107 void *
operator new(
size_t size)
108 {
return sqlite_allocate(size); }
110 void *
operator new[](
size_t size)
111 {
return sqlite_allocate(size); }
114 void operator delete (
void * ptr)
noexcept
116 void operator delete[](
void * ptr)
noexcept
128 using value_type = T;
139 return sqlite_allocate(n *
sizeof(T));
Memory deleter that uses sqlite3_free.
Definition memory_iface.hpp:31
ThinSQLite++ namespace.
Definition backup_iface.hpp:17
Base class that makes derived classes be allocated using SQLite.
Definition memory_iface.hpp:100
A C++ Allocator that uses SQLite memory allocation functions.
Definition memory_iface.hpp:127