|
nngn
|
#include <pointer_flag.h>
Public Member Functions | |
| pointer_flag ()=default | |
| constexpr | pointer_flag (T *p) |
| T * | get () |
| bool | flag () |
| void | set_flag (bool b) |
Private Member Functions | |
| auto | to_uint () const |
Private Attributes | |
| T * | p = nullptr |
Static Private Attributes | |
| static constexpr uintptr_t | MASK = 0b1 |
|
default |
|
inlineexplicitconstexpr |

|
inline |


| T * nngn::pointer_flag< T >::get | ( | ) |
|
inline |
|
inlineprivate |

|
staticconstexprprivate |
|
private |