| 261 | { |
| 262 | float x, y; |
| 263 | constexpr ImVec2() : x(0.0f), y(0.0f) { } |
| 264 | constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } |
| 265 | float& operator[] (size_t idx) { IM_ASSERT(idx == 0 || idx == 1); return ((float*)(void*)(char*)this)[idx]; } // We very rarely use this [] operator, so the assert overhead is fine. |
| 266 | float operator[] (size_t idx) const { IM_ASSERT(idx == 0 || idx == 1); return ((const float*)(const void*)(const char*)this)[idx]; } |
no outgoing calls
no test coverage detected