Ginkgo Generated from branch based on main. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
Loading...
Searching...
No Matches
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.
 

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: