tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
monotonic_allocator< T > Struct Template Reference

#include <monotonic_allocator.hpp>

Public Types

using difference_type = etl::ptrdiff_t
 
using size_type = etl::size_t
 
using value_type = T
 

Public Member Functions

 monotonic_allocator (etl::span< etl::byte > memory)
 
auto allocate (etl::size_t n) -> T *
 
auto deallocate (T *p, etl::size_t n) -> void
 

Member Typedef Documentation

◆ difference_type

template<typename T>
using difference_type = etl::ptrdiff_t

◆ size_type

template<typename T>
using size_type = etl::size_t

◆ value_type

template<typename T>
using value_type = T

Constructor & Destructor Documentation

◆ monotonic_allocator()

template<typename T>
monotonic_allocator ( etl::span< etl::byte > memory)
inlineexplicit

Member Function Documentation

◆ allocate()

template<typename T>
auto allocate ( etl::size_t n) -> T*
inlinenodiscard

◆ deallocate()

template<typename T>
auto deallocate ( T * p,
etl::size_t n ) -> void
inline

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