template struct ImStableVector

Overview

#include <imgui_internal.h>

template <typename T, int BLOCKSIZE>
struct ImStableVector
{
    // fields

    int Size = 0;
    int Capacity = 0;
    ImVector<T*> Blocks;

    // methods

    void clear();
    void resize(int new_size);
    void reserve(int new_cap);
    T& operator [] (int i);
    const T& operator [] (int i) const;
    T* push_back(const T& v);
};