SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Classes | Typedefs
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

Typedef Documentation

◆ OwnPtr

template<class T >
using SDL::OwnPtr = typedef std::unique_ptr<T, PtrDeleter>
Category:
Resource
See also
resource
PtrBase
RefPtr

◆ RefArray

template<class T >
using SDL::RefArray = typedef std::span<T>
Template Parameters
Tthe wrapped array type, without the []
Category:
Resource
See also
resource
ArrayBase
OwnArray
RefPtr