System.StaticArray.operator ()
C++
operator const T*() const { return Data; }
operator T*() { return Data; }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | sysmac.h | System | StaticArray |
Description
Converts this StaticArray to T*. Use this operator to get the internal data pointer.
// C++ example
StaticArray<int, 5>a;
((int*)a)[0] = 100;
printf("%d", a[0]); // value of element 0