ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
Loading...
Searching...
No Matches
sqlite_allocator< T > Struct Template Reference

A C++ Allocator that uses SQLite memory allocation functions. More...

Public Types

using value_type = T
 

Public Member Functions

template<class U >
constexpr sqlite_allocator (const sqlite_allocator< U > &) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *ptr, std::size_t) noexcept
 

Friends

template<class U >
bool operator== (const sqlite_allocator< T > &, const sqlite_allocator< U > &) noexcept
 
template<class U >
bool operator!= (const sqlite_allocator< T > &, const sqlite_allocator< U > &) noexcept
 

Detailed Description

template<class T>
struct thinsqlitepp::sqlite_allocator< T >

A C++ Allocator that uses SQLite memory allocation functions.