Ginkgo  Generated from pipelines/224724463 branch based on develop. Ginkgo version 1.3.0
A numerical linear algebra library targeting many-core architectures
Public Types | Public Member Functions | List of all members
gko::executor_deleter< T > Class Template Reference

This is a deleter that uses an executor's free method to deallocate the data. More...

#include <ginkgo/core/base/executor.hpp>

Public Types

using pointer = T *
 

Public Member Functions

 executor_deleter (std::shared_ptr< const Executor > exec)
 Creates a new deleter. More...
 
void operator() (pointer ptr) const
 Deletes the object. More...
 

Detailed Description

template<typename T>
class gko::executor_deleter< T >

This is a deleter that uses an executor's free method to deallocate the data.

Template Parameters
Tthe type of object being deleted

Constructor & Destructor Documentation

◆ executor_deleter()

template<typename T >
gko::executor_deleter< T >::executor_deleter ( std::shared_ptr< const Executor exec)
inlineexplicit

Creates a new deleter.

Parameters
execthe executor used to free the data

Member Function Documentation

◆ operator()()

template<typename T >
void gko::executor_deleter< T >::operator() ( pointer  ptr) const
inline

Deletes the object.

Parameters
ptrpointer to the object being deleted

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