mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-05 13:35:09 +00:00
This commit is contained in:
parent
8a9ee9cded
commit
6a546a500f
1 changed files with 1 additions and 1 deletions
2
imgui.h
2
imgui.h
|
@ -1395,7 +1395,7 @@ struct ImVector
|
|||
inline bool empty() const { return Size == 0; }
|
||||
inline int size() const { return Size; }
|
||||
inline int size_in_bytes() const { return Size * (int)sizeof(T); }
|
||||
inline int max_size() const { return (~(unsigned int)0) / (int)sizeof(T); }
|
||||
inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); }
|
||||
inline int capacity() const { return Capacity; }
|
||||
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]; }
|
||||
|
|
Loading…
Add table
Reference in a new issue