Loading...
Searching...
No Matches
WorkZeroAllocator< T > Struct Template Reference

An allocator that provides zero-initialized memory. More...

#include <zeroAllocator.h>

Inherits cache_aligned_allocator< T >.

Public Types

using value_type = T
 
using propagate_on_container_move_assignment = std::true_type
 
using is_always_equal = std::true_type
 

Public Member Functions

template<typename U >
 WorkZeroAllocator (const WorkZeroAllocator< U > &) noexcept
 
T * allocate (std::size_t n)
 

Detailed Description

template<typename T>
struct WorkZeroAllocator< T >

An allocator that provides zero-initialized memory.

Note
This meets the standard C++ Allocator requirements and can be passed as an allocation routine to be used by STL templates.

Definition at line 26 of file zeroAllocator.h.

Member Typedef Documentation

◆ is_always_equal

using is_always_equal = std::true_type

Definition at line 29 of file zeroAllocator.h.

◆ propagate_on_container_move_assignment

using propagate_on_container_move_assignment = std::true_type

Definition at line 28 of file zeroAllocator.h.

◆ value_type

using value_type = T

Definition at line 27 of file zeroAllocator.h.

Constructor & Destructor Documentation

◆ WorkZeroAllocator()

WorkZeroAllocator ( const WorkZeroAllocator< U > &  )
inlinenoexcept

Definition at line 38 of file zeroAllocator.h.

Member Function Documentation

◆ allocate()

T * allocate ( std::size_t  n)
inline

Definition at line 40 of file zeroAllocator.h.


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