BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Types | Public Member Functions | List of all members
bc::allocators::Null_Allocator< ValueType, SystemTag > Struct Template Reference

#include <null_allocator.h>

Public Types

using system_tag = SystemTag
 
using value_type = ValueType
 
using size_t = bc::size_t
 

Public Member Functions

 Null_Allocator ()=default
 
 Null_Allocator (const Null_Allocator &)=default
 
 Null_Allocator (Null_Allocator &&)=default
 
template<class AltT >
 Null_Allocator (Null_Allocator< AltT, SystemTag > copy)
 
value_typeallocate (size_t sz)
 
void deallocate (value_type *ptr, size_t sz)
 
template<class U >
constexpr bool operator== (const Null_Allocator< U, system_tag > &) const
 
template<class U >
constexpr bool operator!= (const Null_Allocator< U, system_tag > &) const
 

Member Typedef Documentation

◆ size_t

template<class ValueType, class SystemTag>
using bc::allocators::Null_Allocator< ValueType, SystemTag >::size_t = bc::size_t

◆ system_tag

template<class ValueType, class SystemTag>
using bc::allocators::Null_Allocator< ValueType, SystemTag >::system_tag = SystemTag

◆ value_type

template<class ValueType, class SystemTag>
using bc::allocators::Null_Allocator< ValueType, SystemTag >::value_type = ValueType

Constructor & Destructor Documentation

◆ Null_Allocator() [1/4]

template<class ValueType, class SystemTag>
bc::allocators::Null_Allocator< ValueType, SystemTag >::Null_Allocator ( )
default

◆ Null_Allocator() [2/4]

template<class ValueType, class SystemTag>
bc::allocators::Null_Allocator< ValueType, SystemTag >::Null_Allocator ( const Null_Allocator< ValueType, SystemTag > &  )
default

◆ Null_Allocator() [3/4]

template<class ValueType, class SystemTag>
bc::allocators::Null_Allocator< ValueType, SystemTag >::Null_Allocator ( Null_Allocator< ValueType, SystemTag > &&  )
default

◆ Null_Allocator() [4/4]

template<class ValueType, class SystemTag>
template<class AltT >
bc::allocators::Null_Allocator< ValueType, SystemTag >::Null_Allocator ( Null_Allocator< AltT, SystemTag >  copy)
inline

Member Function Documentation

◆ allocate()

template<class ValueType, class SystemTag>
value_type* bc::allocators::Null_Allocator< ValueType, SystemTag >::allocate ( size_t  sz)
inline

◆ deallocate()

template<class ValueType, class SystemTag>
void bc::allocators::Null_Allocator< ValueType, SystemTag >::deallocate ( value_type ptr,
size_t  sz 
)
inline

◆ operator!=()

template<class ValueType, class SystemTag>
template<class U >
constexpr bool bc::allocators::Null_Allocator< ValueType, SystemTag >::operator!= ( const Null_Allocator< U, system_tag > &  ) const
inline

◆ operator==()

template<class ValueType, class SystemTag>
template<class U >
constexpr bool bc::allocators::Null_Allocator< ValueType, SystemTag >::operator== ( const Null_Allocator< U, system_tag > &  ) const
inline

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