14 virtual const char*
what() const noexcept {
15 return "Dereferencing nullptr";
36 template <
typename... TArgs>
37 INLINE decltype(
auto) operator()(TArgs&&... args)
const {
41 return (*ptr)(std::forward<TArgs>(args)...);
Simplified implementation of std::unique_ptr, using only default deleter.
#define INLINE
Macros for conditional compilation based on selected compiler.
#define NAMESPACE_SPH_END
Wrapper of pointer that deletes the resource from destructor.
virtual const char * what() const noexcept
INLINE T * operator->() const
INLINE T & operator*() const