diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2019-08-21 16:03:36 +0300 |
---|---|---|
committer | Juha Alanen <19551460+jmalanen@users.noreply.github.com> | 2019-09-18 14:29:15 +0300 |
commit | 413278ca20de77f7025b5304493dca6d1863fbb3 (patch) | |
tree | 194c238e77795c3421fc0f849406340fd8e4ad77 /src/mbgl/gfx | |
parent | 91171bc1a98acf3d21704fa86ad7ada5d1ac762e (diff) | |
download | qtlocation-mapboxgl-413278ca20de77f7025b5304493dca6d1863fbb3.tar.gz |
[core] Add feature state support to bucket classes
Diffstat (limited to 'src/mbgl/gfx')
-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(); } |