|
Boost Users : |
Subject: [Boost-users] [property_map] constructor of vector_property_map
From: Andreas Fabri (andreas.fabri_at_[hidden])
Date: 2013-02-13 04:10:44
Hello,
Why is initial_size in the constructor
__________________________________________________________________
vector_property_map(unsigned initial_size, const IndexMap& index =
IndexMap())
This constructor version allows to specify maximum index of element that
will be stored. Correct number will improve performance, but semantic is
always the same.
Source:
http://www.boost.org/doc/libs/1_53_0/libs/property_map/doc/vector_property_map.html
__________________________________________________________________
not std::size_t, for the simple reason that the std::vector
might be bigger.
best regards,
andreas
-- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net