summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-08-21 16:03:36 +0300
committerJuha Alanen <19551460+jmalanen@users.noreply.github.com>2019-09-18 14:29:15 +0300
commit413278ca20de77f7025b5304493dca6d1863fbb3 (patch)
tree194c238e77795c3421fc0f849406340fd8e4ad77 /src/mbgl/gfx
parent91171bc1a98acf3d21704fa86ad7ada5d1ac762e (diff)
downloadqtlocation-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.hpp5
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();
}