Akio Nakamura e46be25f0e Reduce redundant code of prevector and speed it up
In prevector.h, the code which like item_ptr(size()) apears in the loop.
Both item_ptr() and size() judge whether values are held directly or
indirectly, but in most cases it is sufficient to make that judgement
once outside the loop.

This PR adds 2 private function fill() which has the loop to initialize
by specified value (or iterator of the other prevector's element),
but don't call item_ptr() in their loop.
Other functions(assign(), constructor, operator=(), insert())
that has similar loop, call fill() instead of original loop.

Also, resize() was changed like fill(), but it calls the default
constructor for that element each time.
2018-02-27 11:42:33 -08:00
..
2018-02-27 11:42:06 -08:00
2018-02-16 08:59:28 -05:00
2018-02-11 10:48:15 +01:00
2017-09-29 16:02:39 +02:00
2018-02-10 09:55:54 -05:00
2018-01-28 13:21:25 +01:00
2018-02-11 10:48:15 +01:00
2018-02-27 11:42:06 -08:00
2018-01-23 13:16:56 -05:00
2018-01-10 20:55:41 -10:00
2018-01-28 13:21:25 +01:00
2018-01-28 13:21:25 +01:00
2017-10-29 21:12:12 +08:00
2018-01-09 08:59:21 -05:00
2018-02-15 16:25:13 +01:00
2018-02-15 16:25:13 +01:00