SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Pointer wrapper to SDL::free()

Wraps SDL generated pointers to automatically freeing them. More...

Classes

struct  SDL::PtrDeleter
 Calls SDL_free(). More...
class  SDL::OwnArray< T >
 Base class for SDL memory allocated array wrap. More...

Typedefs

template<class T>
using SDL::OwnPtr = std::unique_ptr<T, PtrDeleter>
 Handle to an owned SDL memory allocated pointer.
template<class T>
using SDL::RefArray = std::span<T>
 Handle to an owned SDL memory allocated array.

Detailed Description

Wraps SDL generated pointers to automatically freeing them.

Typedef Documentation

◆ OwnPtr

template<class T>
using SDL::OwnPtr = std::unique_ptr<T, PtrDeleter>

Handle to an owned SDL memory allocated pointer.

Category:
Resource
See also
resource
PtrBase
RefPtr

◆ RefArray

template<class T>
using SDL::RefArray = std::span<T>

Handle to an owned SDL memory allocated array.

Template Parameters
Tthe wrapped array type, without the []
Category:
Resource
See also
resource
ArrayBase
OwnArray
RefPtr