Added stored_size option to small_vector

This commit is contained in:
Ion Gaztañaga committed 2024-10-13 00:29:12 +02:00
1 parent 13603d7de1
commit af58c7d226
5 files changed
+81 -8

No files matched your search

+6 -2
View File
@@ -69,7 +69,9 @@ struct get_vopt_from_svopt
: get_small_vector_opt<Options>::type
{
typedef typename get_small_vector_opt<Options>::type options_t;
typedef vector_opt< typename options_t::growth_factor_type, void> type;
typedef vector_opt< typename options_t::growth_factor_type
, typename options_t::stored_size_type
> type;
};
template<>
@@ -340,9 +342,11 @@ struct small_vector_storage<T, 0u, Alignment>
//!
template <class T, class SecAlloc, class Options>
class small_vector_base
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
: public dtl::vector_for_small_vector<T, SecAlloc, Options>::type
#endif
{
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKEDVECTOR
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
public:
//Make it public as it will be inherited by small_vector and container
//must have this public member