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

#include <hxutility.h>

Public Member Functions

template<typename T>
constexpr operator T* () const
template<typename T, typename M_>
constexpr operator M_ T::* () const

Detailed Description

hxnil_t - A class that will only convert to a null T pointer or a null hxhandle_t.

Useful when an integer literal 0 arg would be ambiguous or otherwise break template code. Also used as a tag for nothing. Use plain hxnull for == and != comparisons.

Member Function Documentation

◆ operator M_ T::*()

template<typename T, typename M_>
hxnil_t::operator M_ T::* ( ) const
inlineconstexpr

Null T method pointer.

◆ operator T*()

template<typename T>
hxnil_t::operator T* ( ) const
inlineconstexpr

Null T pointer.


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