ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
Loading...
Searching...
No Matches
sqlite_allocated Struct Reference

Base class that makes derived classes be allocated using SQLite. More...

Public Member Functions

void * operator new (std::size_t size, const std::nothrow_t &) noexcept
 
void * operator new[] (std::size_t size, const std::nothrow_t &) noexcept
 
void * operator new (size_t size)
 
void * operator new[] (size_t size)
 
void operator delete (void *ptr) noexcept
 
void operator delete[] (void *ptr) noexcept
 

Detailed Description

Base class that makes derived classes be allocated using SQLite.

Allocation is performed via sqlite3_malloc or sqlite3_malloc64 Deallocation - via sqlite3_free

Note
Unlike sqlite3_malloc, size 0 is legal for operator new overloads. It allocates a unique object just like standard std::malloc does.

#include <thinsqlitepp/memory.hpp>