Make customization example more clear with a heading before each option

This commit is contained in:
Ion Gaztañaga
2026-01-24 22:53:42 +01:00
parent 34bdb94986
commit 06cdd2fc4a
6 changed files with 80 additions and 32 deletions

View File

@@ -20,6 +20,10 @@ int main ()
{
using namespace boost::container;
//--------------------------------------------
// 'stored_size' option
//--------------------------------------------
//This option specifies that a vector that will use "unsigned char" as
//the type to store capacity or size internally.
typedef vector_options< stored_size<unsigned char> >::type size_option_t;
@@ -43,6 +47,10 @@ int main ()
assert(exception_thrown == true);
//--------------------------------------------
// 'growth_factor' option
//--------------------------------------------
//This option specifies that a vector will increase its capacity 50%
//each time the previous capacity was exhausted.
typedef vector_options< growth_factor<growth_factor_50> >::type growth_50_option_t;