null_deleter< T > Class Template Reference

null_deleter&lt; T &gt; Class Template Reference#

Reference API: gko::null_deleter< T > Class Template Reference
Reference API
gko::null_deleter< T > Class Template Reference

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

Public Types

using pointer = T *
 

Public Member Functions

void operator() (pointer) const noexcept
 

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: