Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
util::Destroy< T, ReturnType, function > Struct Template Reference

Deleter adapter that destroys the wrapped pointer. More...

#include <src/utility.h>

Public Types

using pointer = T
 Pointer type accepted by this deleter.

Public Member Functions

void operator() (pointer p) const
 Invoke the configured destroy function on a pointer.

Detailed Description

template<class T, class ReturnType, typename Function< ReturnType, T >::type function>
struct util::Destroy< T, ReturnType, function >

Deleter adapter that destroys the wrapped pointer.

Member Function Documentation

◆ operator()()

template<class T, class ReturnType, typename Function< ReturnType, T >::type function>
void util::Destroy< T, ReturnType, function >::operator() ( pointer p) const
inline

Invoke the configured destroy function on a pointer.

Parameters
pPointer to release.

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