#include "Compiler.h"
#include <stddef.h>
Go to the source code of this file.
|
static constexpr void * | OffsetPointer (void *p, ptrdiff_t offset) |
| Offset the given pointer by the specified number of bytes. More...
|
|
static constexpr const void * | OffsetPointer (const void *p, ptrdiff_t offset) |
| Offset the given pointer by the specified number of bytes. More...
|
|
template<typename T , typename U > |
static constexpr T * | OffsetCast (U *p, ptrdiff_t offset) |
|
template<typename T , typename U > |
static constexpr T * | OffsetCast (const U *p, ptrdiff_t offset) |
|
template<class C , class A > |
static constexpr ptrdiff_t | ContainerAttributeOffset (const C *null_c, const A C::*p) |
|
template<class C , class A > |
static constexpr ptrdiff_t | ContainerAttributeOffset (const A C::*p) |
|
template<class C , class A > |
static C & | ContainerCast (A &a, A C::*member) |
| Cast the given pointer to a struct member to its parent structure. More...
|
|
template<class C , class A > |
static const C & | ContainerCast (const A &a, A C::*member) |
| Cast the given pointer to a struct member to its parent structure. More...
|
|
◆ ContainerAttributeOffset() [1/2]
template<class C , class A >
static constexpr ptrdiff_t ContainerAttributeOffset |
( |
const C * |
null_c, |
|
|
const A C::* |
p |
|
) |
| |
|
inlinestatic |
◆ ContainerAttributeOffset() [2/2]
template<class C , class A >
static constexpr ptrdiff_t ContainerAttributeOffset |
( |
const A C::* |
p | ) |
|
|
inlinestatic |
◆ ContainerCast() [1/2]
template<class C , class A >
static C& ContainerCast |
( |
A & |
a, |
|
|
A C::* |
member |
|
) |
| |
|
inlinestatic |
Cast the given pointer to a struct member to its parent structure.
Definition at line 91 of file Cast.hxx.
◆ ContainerCast() [2/2]
template<class C , class A >
static const C& ContainerCast |
( |
const A & |
a, |
|
|
A C::* |
member |
|
) |
| |
|
inlinestatic |
Cast the given pointer to a struct member to its parent structure.
Definition at line 104 of file Cast.hxx.
◆ OffsetCast() [1/2]
template<typename T , typename U >
static constexpr T* OffsetCast |
( |
U * |
p, |
|
|
ptrdiff_t |
offset |
|
) |
| |
|
inlinestatic |
◆ OffsetCast() [2/2]
template<typename T , typename U >
static constexpr T* OffsetCast |
( |
const U * |
p, |
|
|
ptrdiff_t |
offset |
|
) |
| |
|
inlinestatic |
◆ OffsetPointer() [1/2]
static constexpr void* OffsetPointer |
( |
void * |
p, |
|
|
ptrdiff_t |
offset |
|
) |
| |
|
inlinestatic |
Offset the given pointer by the specified number of bytes.
Definition at line 41 of file Cast.hxx.
◆ OffsetPointer() [2/2]
static constexpr const void* OffsetPointer |
( |
const void * |
p, |
|
|
ptrdiff_t |
offset |
|
) |
| |
|
inlinestatic |
Offset the given pointer by the specified number of bytes.
Definition at line 50 of file Cast.hxx.