Improvement for set_size

This commit is contained in:
Laurent Rineau 2019-12-04 15:42:54 +01:00
parent 6cdd833e13
commit e9f1cb405f
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ public:
size_type size() const { return m_size; }
void set_size(size_type s) {
m_size = s;
#if CGAL_CONCURRENT_COMPACT_CONTAINER_APPROXIMATE_SIZE
refresh_approximate_size();
#endif
}
void inc_size() {
++m_size;