14 template <
typename THIS_CONTAINER,
typename BASE_CONTAINER>
15 template <
typename... ARGS>
16 inline StdVectorBasedContainer<THIS_CONTAINER, BASE_CONTAINER>::StdVectorBasedContainer (ARGS... args)
17 : BASE_CONTAINER{forward<ARGS> (args)...}
20 template <
typename THIS_CONTAINER,
typename BASE_CONTAINER>
21 inline size_t StdVectorBasedContainer<THIS_CONTAINER, BASE_CONTAINER>::capacity ()
const
23 using _SafeReadRepAccessor =
typename THIS_CONTAINER ::template _SafeReadRepAccessor<typename THIS_CONTAINER::Rep_>;
24 return _SafeReadRepAccessor{
this}._ConstGetRep ().fData_.capacity ();
26 template <
typename THIS_CONTAINER,
typename BASE_CONTAINER>
29 using _SafeReadWriteRepAccessor =
typename THIS_CONTAINER ::template _SafeReadWriteRepAccessor<typename THIS_CONTAINER::Rep_>;
30 return _SafeReadWriteRepAccessor{
this}._GetWriteableRep ().fData_.
reserve (slotsAlloced);
32 template <
typename THIS_CONTAINER,
typename BASE_CONTAINER>
35 using _SafeReadWriteRepAccessor =
typename THIS_CONTAINER ::template _SafeReadWriteRepAccessor<typename THIS_CONTAINER::Rep_>;
36 return _SafeReadWriteRepAccessor{
this}._GetWriteableRep ().fData_.
shrink_to_fit ();
StdVectorBasedContainer is a Stroika implementation detail, but its public methods are fair game and ...
nonvirtual void reserve(size_t slotsAlloced)
nonvirtual void shrink_to_fit()
Reduce the space used to store the container contents.