![]() |
Home | Libraries | People | FAQ | More |
boost::container::relocate_on
// In header: <boost/container/options.hpp> template<std::size_t Fraction> struct relocate_on { };
This option specifies the relocation strategy of devector: what an insertion does when there is no free space at the end of the buffer where the insertion takes place.
Predefined relocation limits that can be passed as arguments to this option are: boost::container::relocate_on_66 boost::container::relocate_on_75 boost::container::relocate_on_80 boost::container::relocate_on_85 boost::container::relocate_on_90 boost::container::relocate_never
If this option is not specified, a default will be used by the container.
Note: Repeated insertions at only one end (only back insertions or only front insertions) usually will lead to a single relocation when relocate_on_66 is used and two relocations when relocate_on_90 is used.