Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZStd::allocator_ref< Allocator > Class Template Reference

#include <allocator_ref.h>

Public Types

using pointer = typename Allocator::pointer
 
using size_type = typename Allocator::size_type
 
using difference_type = typename Allocator::difference_type
 
using allocator_pointer = Allocator *
 
using allocator_reference = Allocator &
 

Public Member Functions

AZ_FORCE_INLINE allocator_ref (allocator_reference allocator)
 
AZ_FORCE_INLINE allocator_ref (const allocator_ref &rhs)=default
 
AZ_FORCE_INLINE allocator_ref (allocator_ref &&rhs)=default
 
AZ_FORCE_INLINE allocator_refoperator= (const allocator_ref &rhs)=default
 
AZ_FORCE_INLINE allocator_refoperator= (allocator_ref &&rhs)=default
 
constexpr size_type max_size () const
 
AZ_FORCE_INLINE size_type get_allocated_size () const
 
AZ_FORCE_INLINE pointer allocate (size_type byteSize, size_type alignment)
 
AZ_FORCE_INLINE void deallocate (pointer ptr, size_type byteSize, size_type alignment)
 
AZ_FORCE_INLINE size_type resize (pointer ptr, size_type newSize)
 
AZ_FORCE_INLINE allocator_reference get_allocator () const
 

Detailed Description

template<class Allocator>
class AZStd::allocator_ref< Allocator >

This allocator allows us to share allocator instance between different containers.


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