small_vector has reserve()

This commit is contained in:
Andreas Fabri 2021-03-02 21:30:36 +00:00
parent 95ea922de8
commit a945c4f840
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ add_face(const VertexRange& vr, Graph& g)
typedef std::pair<halfedge_descriptor, halfedge_descriptor> NextCacheEntry;
typedef boost::container::small_vector<NextCacheEntry,9> NextCache;
NextCache next_cache;
//next_cache.reserve(3 * n); Unfortunately small_vector has no reserve
next_cache.reserve(3 * n);
// re-link patches if necessary
for (unsigned int i = 0, ii = 1; i<n; ++i, ++ii, ii %= n)