Open C++ Libraries.org develop
Loading...
Searching...
No Matches
ocl::global_new_op< Type > Struct Template Referencefinal

#include <allocator_fwd.hpp>

Public Types

using pointer_type = Type *
 
using const_pointer_type = const Type *
 
using pointer = Type *
 
using const_pointer = const Type *
 
using mutex_type = std::mutex
 
using lock_type = std::scoped_lock< mutex_type >
 
using type = Type
 

Public Member Functions

auto single_alloc () -> pointer_type
 
template<size_t N>
auto array_alloc () -> pointer_type
 
template<typename... VarType>
auto var_alloc (VarType &&... args) -> pointer_type
 

Public Attributes

mutex_type m_
 

Detailed Description

template<typename Type>
struct ocl::global_new_op< Type >
Note
these are guidelines on allocating a resource

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