reserve¶
-
void
libsemigroups::FroidurePinBase
::
reserve
(size_t) = 0¶ Requests that the capacity (i.e.
number of elements) of the semigroup be at least enough to contain n elements.
The parameter
n
is also used to initialise certain data members. If you know a good upper bound for the size of your semigroup, then it is a good idea to call this member function with that upper bound as an argument; this can significantly improve the performance of the FroidurePin::run member function, and consequently every other member function too.