Loading...
Searching...
No Matches
HdDataSourceAllocator< U > Struct Template Reference

HdDataSourceAllocator. More...

#include <dataSource.h>

Public Types

using value_type = U
 

Public Member Functions

template<typename V >
 HdDataSourceAllocator (const HdDataSourceAllocator< V > &) noexcept
 
U * allocate (size_t n)
 
void deallocate (U *p, size_t n) noexcept
 
template<typename... Args>
void construct (U *p, Args &&... args)
 
void destroy (U *p) noexcept
 

Detailed Description

template<typename U>
struct HdDataSourceAllocator< U >

HdDataSourceAllocator.

HdDataSourceAllocator simply wraps std::allocator. It exists to allow std::allocate_shared to access the private constructor, by being declared friend.

Definition at line 32 of file dataSource.h.

Member Typedef Documentation

◆ value_type

template<typename U >
using value_type = U

Definition at line 34 of file dataSource.h.

Constructor & Destructor Documentation

◆ HdDataSourceAllocator()

template<typename U >
template<typename V >
HdDataSourceAllocator ( const HdDataSourceAllocator< V > & )
inlinenoexcept

Definition at line 39 of file dataSource.h.

Member Function Documentation

◆ allocate()

template<typename U >
U * allocate ( size_t n)
inline

Definition at line 40 of file dataSource.h.

◆ construct()

template<typename U >
template<typename... Args>
void construct ( U * p,
Args &&... args )
inline

Definition at line 44 of file dataSource.h.

◆ deallocate()

template<typename U >
void deallocate ( U * p,
size_t n )
inlinenoexcept

Definition at line 41 of file dataSource.h.

◆ destroy()

template<typename U >
void destroy ( U * p)
inlinenoexcept

Definition at line 46 of file dataSource.h.


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