cpp-sdl2
C++ header-only SDL2 wrapper
|
Allocator usable with standard containers. More...
#include <simd.hpp>
Classes | |
struct | rebind |
Public Types | |
using | value_type = T |
Public Member Functions | |
constexpr | allocator () noexcept=default |
template<typename U > | |
constexpr | allocator (allocator< U >) noexcept |
T * | allocate (std::size_t size) |
void | deallocate (T *ptr, [[maybe_unused]] std::size_t size) noexcept |
Friends | |
constexpr bool | operator== (allocator, allocator) noexcept |
constexpr bool | operator!= (allocator, allocator) noexcept |
Allocator usable with standard containers.
using sdl::simd::allocator< T >::value_type = T |
|
defaultnoexcept |
|
inlineexplicitnoexcept |
|
inline |
Definition at line 51 of file simd.hpp.
References sdl::simd::alloc(), and sdl::simd::mem.
Referenced by sdl::simd::make_shared(), and sdl::simd::make_unique().
|
inlinenoexcept |
Definition at line 60 of file simd.hpp.
References sdl::simd::free().