MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::detail::space_allocator< T, Space > Class Template Reference

#include <space_allocator.hpp>

Classes

struct  rebind

Public Types

using value_type = T
using memory_space = Space
using propagate_on_container_move_assignment = std::true_type
using is_always_equal = std::true_type

Public Member Functions

 space_allocator () noexcept=default
template<typename U>
 space_allocator (const space_allocator< U, Space > &) noexcept
T * allocate (std::size_t n)
void deallocate (T *p, std::size_t n) noexcept

Friends

template<typename U>
bool operator== (const space_allocator &, const space_allocator< U, Space > &) noexcept

Member Typedef Documentation

◆ is_always_equal

template<typename T, typename Space>
using mtl::detail::space_allocator< T, Space >::is_always_equal = std::true_type

◆ memory_space

template<typename T, typename Space>
using mtl::detail::space_allocator< T, Space >::memory_space = Space

◆ propagate_on_container_move_assignment

template<typename T, typename Space>
using mtl::detail::space_allocator< T, Space >::propagate_on_container_move_assignment = std::true_type

◆ value_type

template<typename T, typename Space>
using mtl::detail::space_allocator< T, Space >::value_type = T

Constructor & Destructor Documentation

◆ space_allocator() [1/2]

template<typename T, typename Space>
mtl::detail::space_allocator< T, Space >::space_allocator ( )
defaultnoexcept

◆ space_allocator() [2/2]

template<typename T, typename Space>
template<typename U>
mtl::detail::space_allocator< T, Space >::space_allocator ( const space_allocator< U, Space > & )
inlinenoexcept

Member Function Documentation

◆ allocate()

template<typename T, typename Space>
T * mtl::detail::space_allocator< T, Space >::allocate ( std::size_t n)
inlinenodiscard

◆ deallocate()

template<typename T, typename Space>
void mtl::detail::space_allocator< T, Space >::deallocate ( T * p,
std::size_t n )
inlinenoexcept

◆ operator==

template<typename T, typename Space>
template<typename U>
bool operator== ( const space_allocator< T, Space > & ,
const space_allocator< U, Space > &  )
friend

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