Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::OGDFAllocator< T > Struct Template Reference

Encapsulates OGDF_ALLOCATOR in a class that can be used as the Allocator for containers of the C++ standard library. More...

#include <ogdf/basic/memory.h>

Public Types

using value_type = T
 

Public Member Functions

 OGDFAllocator () noexcept=default
 
template<class U >
 OGDFAllocator (const OGDFAllocator< U > &) noexcept
 
T * allocate (const size_t n) const
 
void deallocate (T *const p, size_t n) const noexcept
 
template<class U >
bool operator!= (const OGDFAllocator< U > &) const noexcept
 
template<class U >
bool operator== (const OGDFAllocator< U > &) const noexcept
 

Detailed Description

template<class T>
struct ogdf::OGDFAllocator< T >

Encapsulates OGDF_ALLOCATOR in a class that can be used as the Allocator for containers of the C++ standard library.

Definition at line 99 of file memory.h.

Member Typedef Documentation

◆ value_type

template<class T >
using ogdf::OGDFAllocator< T >::value_type = T

Definition at line 100 of file memory.h.

Constructor & Destructor Documentation

◆ OGDFAllocator() [1/2]

template<class T >
ogdf::OGDFAllocator< T >::OGDFAllocator ( )
defaultnoexcept

◆ OGDFAllocator() [2/2]

template<class T >
template<class U >
ogdf::OGDFAllocator< T >::OGDFAllocator ( const OGDFAllocator< U > &  )
inlinenoexcept

Definition at line 105 of file memory.h.

Member Function Documentation

◆ allocate()

template<class T >
T* ogdf::OGDFAllocator< T >::allocate ( const size_t  n) const
inline

Definition at line 117 of file memory.h.

◆ deallocate()

template<class T >
void ogdf::OGDFAllocator< T >::deallocate ( T *const  p,
size_t  n 
) const
inlinenoexcept

Definition at line 126 of file memory.h.

◆ operator!=()

template<class T >
template<class U >
bool ogdf::OGDFAllocator< T >::operator!= ( const OGDFAllocator< U > &  ) const
inlinenoexcept

Definition at line 113 of file memory.h.

◆ operator==()

template<class T >
template<class U >
bool ogdf::OGDFAllocator< T >::operator== ( const OGDFAllocator< U > &  ) const
inlinenoexcept

Definition at line 108 of file memory.h.


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