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

This is a deleter that does not delete the object. More...

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

Public Types

using pointer = T *
 

Public Member Functions

void operator() (pointer) const noexcept
 Deletes the object. More...
 

Detailed Description

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

This is a deleter that does not delete the object.

It is useful where the object has been allocated elsewhere and will be deleted manually.

Member Function Documentation

◆ operator()()

template<typename T >
void gko::null_deleter< T >::operator() ( pointer  ) const
inlinenoexcept

Deletes the object.

Parameters
ptrpointer to the object being deleted

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