Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::detail::AlignedAllocator< T, Alignment > Class Template Reference

#include <tensor_bridge.hpp>

Classes

struct  rebind
 

Public Types

using value_type = T
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using propagate_on_container_move_assignment = std::true_type
 
using is_always_equal = std::true_type
 

Public Member Functions

 AlignedAllocator () noexcept=default
 
template<typename U >
 AlignedAllocator (const AlignedAllocator< U, Alignment > &) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *ptr, std::size_t) noexcept
 
template<typename U >
bool operator== (const AlignedAllocator< U, Alignment > &) const noexcept
 
template<typename U >
bool operator!= (const AlignedAllocator< U, Alignment > &) const noexcept
 

Detailed Description

template<typename T, std::size_t Alignment>
class signet::forge::detail::AlignedAllocator< T, Alignment >

Definition at line 55 of file tensor_bridge.hpp.

Member Typedef Documentation

◆ difference_type

template<typename T , std::size_t Alignment>
using signet::forge::detail::AlignedAllocator< T, Alignment >::difference_type = std::ptrdiff_t

Definition at line 59 of file tensor_bridge.hpp.

◆ is_always_equal

template<typename T , std::size_t Alignment>
using signet::forge::detail::AlignedAllocator< T, Alignment >::is_always_equal = std::true_type

Definition at line 61 of file tensor_bridge.hpp.

◆ propagate_on_container_move_assignment

template<typename T , std::size_t Alignment>
using signet::forge::detail::AlignedAllocator< T, Alignment >::propagate_on_container_move_assignment = std::true_type

Definition at line 60 of file tensor_bridge.hpp.

◆ size_type

template<typename T , std::size_t Alignment>
using signet::forge::detail::AlignedAllocator< T, Alignment >::size_type = std::size_t

Definition at line 58 of file tensor_bridge.hpp.

◆ value_type

template<typename T , std::size_t Alignment>
using signet::forge::detail::AlignedAllocator< T, Alignment >::value_type = T

Definition at line 57 of file tensor_bridge.hpp.

Constructor & Destructor Documentation

◆ AlignedAllocator() [1/2]

template<typename T , std::size_t Alignment>
signet::forge::detail::AlignedAllocator< T, Alignment >::AlignedAllocator ( )
defaultnoexcept

◆ AlignedAllocator() [2/2]

template<typename T , std::size_t Alignment>
template<typename U >
signet::forge::detail::AlignedAllocator< T, Alignment >::AlignedAllocator ( const AlignedAllocator< U, Alignment > &  )
inlinenoexcept

Definition at line 71 of file tensor_bridge.hpp.

Member Function Documentation

◆ allocate()

template<typename T , std::size_t Alignment>
T * signet::forge::detail::AlignedAllocator< T, Alignment >::allocate ( std::size_t  n)
inline

Definition at line 73 of file tensor_bridge.hpp.

◆ deallocate()

template<typename T , std::size_t Alignment>
void signet::forge::detail::AlignedAllocator< T, Alignment >::deallocate ( T *  ptr,
std::size_t   
)
inlinenoexcept

Definition at line 94 of file tensor_bridge.hpp.

◆ operator!=()

template<typename T , std::size_t Alignment>
template<typename U >
bool signet::forge::detail::AlignedAllocator< T, Alignment >::operator!= ( const AlignedAllocator< U, Alignment > &  ) const
inlinenoexcept

Definition at line 108 of file tensor_bridge.hpp.

◆ operator==()

template<typename T , std::size_t Alignment>
template<typename U >
bool signet::forge::detail::AlignedAllocator< T, Alignment >::operator== ( const AlignedAllocator< U, Alignment > &  ) const
inlinenoexcept

Definition at line 103 of file tensor_bridge.hpp.


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