HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WorkZeroAllocator< T > Struct Template Reference

#include <zeroAllocator.h>

+ Inheritance diagram for WorkZeroAllocator< T >:

Classes

struct  rebind
 

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

 WorkZeroAllocator ()=default
 
template<typename U >
 WorkZeroAllocator (const WorkZeroAllocator< U > &) noexcept
 
Tallocate (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

template<typename T>
using WorkZeroAllocator< T >::is_always_equal = std::true_type

Definition at line 29 of file zeroAllocator.h.

template<typename T>
using WorkZeroAllocator< T >::propagate_on_container_move_assignment = std::true_type

Definition at line 28 of file zeroAllocator.h.

template<typename T>
using WorkZeroAllocator< T >::value_type = T

Definition at line 27 of file zeroAllocator.h.

Constructor & Destructor Documentation

template<typename T>
WorkZeroAllocator< T >::WorkZeroAllocator ( )
default
template<typename T>
template<typename U >
WorkZeroAllocator< T >::WorkZeroAllocator ( const WorkZeroAllocator< U > &  )
inlinenoexcept

Definition at line 38 of file zeroAllocator.h.

Member Function Documentation

template<typename T>
T* WorkZeroAllocator< 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: