|
|
@ -1182,6 +1182,7 @@ struct ImVector
|
|
|
|
|
|
|
|
|
|
|
|
inline bool empty() const { return Size == 0; }
|
|
|
|
inline bool empty() const { return Size == 0; }
|
|
|
|
inline int size() const { return Size; }
|
|
|
|
inline int size() const { return Size; }
|
|
|
|
|
|
|
|
inline int size_in_bytes() const { return Size * (int)sizeof(T); }
|
|
|
|
inline int capacity() const { return Capacity; }
|
|
|
|
inline int capacity() const { return Capacity; }
|
|
|
|
inline T& operator[](int i) { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|
inline T& operator[](int i) { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|
inline const T& operator[](int i) const { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|
inline const T& operator[](int i) const { IM_ASSERT(i < Size); return Data[i]; }
|
|
|
|