diff options
Diffstat (limited to 'src/mbgl/gfx/vertex_vector.hpp')
-rw-r--r-- | src/mbgl/gfx/vertex_vector.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/gfx/vertex_vector.hpp b/src/mbgl/gfx/vertex_vector.hpp index 59fe67586b..091ecb912e 100644 --- a/src/mbgl/gfx/vertex_vector.hpp +++ b/src/mbgl/gfx/vertex_vector.hpp @@ -20,6 +20,11 @@ public: v.resize(v.size() + n, val); } + Vertex& at(std::size_t n) { + assert(n < v.size()); + return v.at(n); + } + std::size_t elements() const { return v.size(); } |