slang/util/PointerIntPair.h file

Space optimized pointer + int pair type.

Namespaces

namespace slang
Root namespace.

Classes

template<typename TPointer, uint32_t IntBits, uint32_t LowBitsAvailable, typename TInt = uint32_t>
class slang::PointerIntPair
A data structure that operates as a pair of a pointer and an integer, which fits in the space of one full sized pointer by exploiting unused bits in the pointer representation.