tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::tds_allocator< T > Struct Template Reference

#include <tdslite/detail/tdsl_allocator.hpp>

Static Public Member Functions

static auto allocate (tdsl::uint32_t n_elems) noexcept -> T *
 
static auto deallocate (T *p, tdsl::uint32_t n_elems) noexcept -> void
 
template<typename... Args>
static auto create (Args &&... args) -> T *
 
static auto destroy (T *p) -> void
 
template<typename... Args>
static auto create_n (tdsl::uint32_t n_elems, Args &&... args) -> T *
 
static auto destroy_n (T *p, tdsl::uint32_t n_elems) -> void
 

Member Function Documentation

◆ allocate()

template<typename T >
static auto tdsl::tds_allocator< T >::allocate ( tdsl::uint32_t  n_elems) -> T *
inlinestaticnoexcept

◆ deallocate()

template<typename T >
static auto tdsl::tds_allocator< T >::deallocate ( T *  p,
tdsl::uint32_t  n_elems 
) -> void
inlinestaticnoexcept

◆ create()

template<typename T >
template<typename... Args>
static auto tdsl::tds_allocator< T >::create ( Args &&...  args) -> T *
inlinestatic

◆ destroy()

template<typename T >
static auto tdsl::tds_allocator< T >::destroy ( T *  p) -> void
inlinestatic

◆ create_n()

template<typename T >
template<typename... Args>
static auto tdsl::tds_allocator< T >::create_n ( tdsl::uint32_t  n_elems,
Args &&...  args 
) -> T *
inlinestatic

◆ destroy_n()

template<typename T >
static auto tdsl::tds_allocator< T >::destroy_n ( T *  p,
tdsl::uint32_t  n_elems 
) -> void
inlinestatic

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