#include <boost/container/vector.hpp>
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <cassert>
int main ()
{
using namespace boost::container;
typedef vector_options< stored_size<unsigned char> >::type size_option_t;
typedef vector<int, new_allocator<int>, size_option_t > size_optimized_vector_t;
assert(( sizeof(size_optimized_vector_t) < sizeof(vector<int>) ));
bool exception_thrown = false;
#ifndef BOOST_NO_EXCEPTIONS
BOOST_CONTAINER_TRY{ size_optimized_vector_t v(256); } BOOST_CONTAINER_CATCH(...){ exception_thrown = true; } BOOST_CONTAINER_CATCH_END
#else
exception_thrown = true;
#endif
assert(exception_thrown == true);
typedef vector_options< growth_factor<growth_factor_50> >::type growth_50_option_t;
vector<int, new_allocator<int>, growth_50_option_t > growth_50_vector(5, 0);
const std::size_t old_cap = growth_50_vector.capacity();
growth_50_vector.resize(old_cap);
growth_50_vector.push_back(1);
assert(growth_50_vector.capacity() == old_cap*3/2);
return 0;
}