HAllocator
A Simple C++ Memory Allocator
Loading...
Searching...
No Matches
Public Types | List of all members
hh::halloc::Halloc< T, BlockSize, MaxNumBlocks >::rebind< U > Struct Template Reference

Rebind allocator to allocate different type U. More...

#include <Halloc.hpp>

Public Types

using other = Halloc< U, BlockSize, MaxNumBlocks >
 

Detailed Description

template<typename T = void, int BlockSize = DEFAULT_BLOCK_SIZE, int MaxNumBlocks = DEFAULT_MAX_NUM_BLOCKS>
template<typename U>
struct hh::halloc::Halloc< T, BlockSize, MaxNumBlocks >::rebind< U >

Rebind allocator to allocate different type U.

Required by C++ allocator requirements for container internals (e.g., std::vector needs to allocate internal node structures).

Member Typedef Documentation

◆ other

template<typename T = void, int BlockSize = DEFAULT_BLOCK_SIZE, int MaxNumBlocks = DEFAULT_MAX_NUM_BLOCKS>
template<typename U >
using hh::halloc::Halloc< T, BlockSize, MaxNumBlocks >::rebind< U >::other = Halloc<U, BlockSize, MaxNumBlocks>

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