Ginkgo: gko::executor_deleter< T > Class Template Reference

| Ginkgo Generated from branch based on main. Ginkgo version 1.11.0 A numerical linear algebra library targeting many-core architectures

Loading...
Searching...
No Matches
gko::executor_deleter< T > Class Template Reference
Executors

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

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

Inheritance diagram for gko::executor_deleter< T >:
[legend]

## Public Types
using | pointer = T*

## Public Member Functions
| executor_deleter (std::shared_ptr< const Executor > exec)
| Creates a new deleter.
void | operator() (pointer ptr) const
| Deletes the object.

## 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

  T | the 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

  exec | the 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

  ptr | pointer to the object being deleted

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

- ginkgo/core/base/executor.hpp