Banuba SDK
Loading...
Searching...
No Matches
bnb::static_pool_allocator< T, MAX_ELEMENTS > Struct Template Reference

Doesn't support N allocs (std::vector) More...

#include <static_pool_allocator.hpp>

Inheritance diagram for bnb::static_pool_allocator< T, MAX_ELEMENTS >:
bnb::static_pool_allocator_fallback< Event, MaxElements > bnb::static_pool_allocator_fallback< T, MAX_ELEMENTS, Alloc_fallback >

Classes

struct  rebind

Public Types

using value_type = T

Public Member Functions

template<class U>
constexpr static_pool_allocator (const static_pool_allocator< U, MAX_ELEMENTS > &u) noexcept
T * allocate (std::size_t n)
T * allocate (std::size_t n, const std::nothrow_t &) noexcept
void deallocate (T *p, std::size_t n)
bool is_mine (T *p)

Detailed Description

template<typename T, size_t MAX_ELEMENTS>
struct bnb::static_pool_allocator< T, MAX_ELEMENTS >

Doesn't support N allocs (std::vector)

Definition at line 23 of file static_pool_allocator.hpp.

Member Typedef Documentation

◆ value_type

template<typename T, size_t MAX_ELEMENTS>
using bnb::static_pool_allocator< T, MAX_ELEMENTS >::value_type = T

Definition at line 26 of file static_pool_allocator.hpp.

Constructor & Destructor Documentation

◆ static_pool_allocator()

template<typename T, size_t MAX_ELEMENTS>
template<class U>
bnb::static_pool_allocator< T, MAX_ELEMENTS >::static_pool_allocator ( const static_pool_allocator< U, MAX_ELEMENTS > & u)
inlineexplicitconstexprnoexcept

Definition at line 31 of file static_pool_allocator.hpp.

32 {
33 }

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