cpp-sdl2
C++ header-only SDL2 wrapper
sdl::simd::deleter< T > Struct Template Reference

deleter usable with std::unique_ptr<T>. More...

#include <simd.hpp>

Public Member Functions

constexpr deleter () noexcept=default
 
template<typename U , typename = std::enable_if_t<std::is_convertible_v<U*, T*>>>
constexpr deleter (deleter< U >) noexcept
 
void operator() (T *ptr) noexcept
 

Detailed Description

template<typename T>
struct sdl::simd::deleter< T >

deleter usable with std::unique_ptr<T>.

Definition at line 83 of file simd.hpp.

Constructor & Destructor Documentation

◆ deleter() [1/2]

template<typename T >
constexpr sdl::simd::deleter< T >::deleter ( )
defaultnoexcept

◆ deleter() [2/2]

template<typename T >
template<typename U , typename = std::enable_if_t<std::is_convertible_v<U*, T*>>>
constexpr sdl::simd::deleter< T >::deleter ( deleter< U >  )
inlinenoexcept

Definition at line 88 of file simd.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
void sdl::simd::deleter< T >::operator() ( T *  ptr)
inlinenoexcept

Definition at line 92 of file simd.hpp.

References sdl::simd::details::destroy_at(), and sdl::simd::free().


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