CPPuddle
Loading...
Searching...
No Matches
cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor > Class Template Reference

Declaration since the actual allocator is only defined after the Executors. More...

#include <aggregation_executors_and_allocators.hpp>

Public Types

using value_type = T

Public Member Functions

 allocator_slice (typename aggregated_executor< Executor >::executor_slice &executor)
template<typename U>
 allocator_slice (allocator_slice< U, Host_Allocator, Executor > const &) noexcept
T * allocate (std::size_t n)
void deallocate (T *p, std::size_t n)
template<typename... Args>
void construct (T *p, Args... args) noexcept
void destroy (T *p)

Detailed Description

template<typename T, typename Host_Allocator, typename Executor>
class cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >

Declaration since the actual allocator is only defined after the Executors.

Member Typedef Documentation

◆ value_type

template<typename T, typename Host_Allocator, typename Executor>
using cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::value_type = T

Constructor & Destructor Documentation

◆ allocator_slice() [1/2]

template<typename T, typename Host_Allocator, typename Executor>
cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::allocator_slice ( typename aggregated_executor< Executor >::executor_slice & executor)
inline

◆ allocator_slice() [2/2]

template<typename T, typename Host_Allocator, typename Executor>
template<typename U>
cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::allocator_slice ( allocator_slice< U, Host_Allocator, Executor > const & )
inlineexplicitnoexcept

Member Function Documentation

◆ allocate()

template<typename T, typename Host_Allocator, typename Executor>
T * cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::allocate ( std::size_t n)
inline

◆ construct()

template<typename T, typename Host_Allocator, typename Executor>
template<typename... Args>
void cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::construct ( T * p,
Args... args )
inlinenoexcept

◆ deallocate()

template<typename T, typename Host_Allocator, typename Executor>
void cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::deallocate ( T * p,
std::size_t n )
inline

◆ destroy()

template<typename T, typename Host_Allocator, typename Executor>
void cppuddle::kernel_aggregation::detail::allocator_slice< T, Host_Allocator, Executor >::destroy ( T * p)
inline

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