|
LLVM
3.7.0
|
#include <PointerLikeTypeTraits.h>
Public Types | |
| enum | { NumLowBitsAvailable = 2 } |
| Note, we assume here that malloc returns objects at least 4-byte aligned. More... | |
Static Public Member Functions | |
| static void * | getAsVoidPointer (T *P) |
| static T * | getFromVoidPointer (void *P) |
Definition at line 34 of file PointerLikeTypeTraits.h.
| anonymous enum |
Note, we assume here that malloc returns objects at least 4-byte aligned.
However, this may be wrong, or pointers may be from something other than malloc. In this case, you should specialize this template to reduce this.
All clients should use assertions to do a run-time check to ensure that this is actually true.
| Enumerator | |
|---|---|
| NumLowBitsAvailable | |
Definition at line 47 of file PointerLikeTypeTraits.h.
|
inlinestatic |
Definition at line 36 of file PointerLikeTypeTraits.h.
References P.
|
inlinestatic |
Definition at line 37 of file PointerLikeTypeTraits.h.
References P.
1.8.6