libhatchet
Loading...
Searching...
No Matches
hxconsteval_delete Class Reference

#include <hxmemory_manager.h>

Public Member Functions

template<typename T>
constexpr void operator() (T *t_) const
constexpr operator bool (void) const

Detailed Description

hxconsteval_delete - A constexpr-compatible deleter that uses ::delete.

Required for consteval contexts where hxdefault_delete cannot be used because hxdelete calls hxfree which is not constexpr.

Member Function Documentation

◆ operator bool()

hxconsteval_delete::operator bool ( void ) const
inlineconstexpr

Always returns true, indicating the deleter is valid.

◆ operator()()

template<typename T>
void hxconsteval_delete::operator() ( T * t_) const
inlineconstexpr

Deletes the object using ::delete.


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