![]() |
ATLAS Offline Software
|
Helpers for converting between uintptr_t and a pointer or integer. More...
Go to the source code of this file.
Classes | |
| union | CxxUtils::detail::UIntConv< T > |
| Helpers for converting between uintptr_t and a pointer or integer. More... | |
| union | CxxUtils::detail::UIntConv< uintptr_t > |
Namespaces | |
| namespace | CxxUtils |
| namespace | CxxUtils::detail |
Helpers for converting between uintptr_t and a pointer or integer.
The concurrent hashmap classes internally represent entries as a uintptr_t. But the user-facing classes get templated on types that could be any POD-like type that can fit in that size. To convert from a uintptr_t to such a type T, we need to first convert to a properly-sized unsigned type using static_cast, and then use a union to convert to T.
Definition in file UIntConv.h.