PLaSK library
Loading...
Searching...
No Matches
plask::aligned_deleter< T > Struct Template Reference

Aligned deleter for use e.g. More...

#include <plask/memalloc.hpp>

Public Member Functions

constexpr aligned_deleter () noexcept=default
 
template<typename U , typename = typename std::enable_if<std::is_convertible<U*,T*>::value>::type>
 aligned_deleter (const aligned_deleter< U > &) noexcept
 
void operator() (T *ptr) const
 

Detailed Description

template<typename T>
struct plask::aligned_deleter< T >

Aligned deleter for use e.g.

in unique_ptr

Definition at line 161 of file memalloc.hpp.

Constructor & Destructor Documentation

◆ aligned_deleter() [1/2]

template<typename T >
constexpr plask::aligned_deleter< T >::aligned_deleter ( )
constexprdefaultnoexcept

◆ aligned_deleter() [2/2]

template<typename T >
template<typename U , typename = typename std::enable_if<std::is_convertible<U*,T*>::value>::type>
plask::aligned_deleter< T >::aligned_deleter ( const aligned_deleter< U > &  )
inlinenoexcept

Definition at line 164 of file memalloc.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
void plask::aligned_deleter< T >::operator() ( T *  ptr) const
inline

Definition at line 166 of file memalloc.hpp.


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