Skip to content

Commit

Permalink
Merge pull request #219 from wthrowe/small_vector_allocation_docs
Browse files Browse the repository at this point in the history
Document small_vector allocation strategy
  • Loading branch information
igaztanaga authored Jul 16, 2022
2 parents b7725ea + 780372b commit d3494d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/boost/container/small_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,14 @@ BOOST_CONTAINER_FORCEINLINE typename small_vector_allocator<T, VoidAlloc, Option
//!
//! All `boost::container::vector` member functions are inherited. See `vector` documentation for details.
//!
//! Any change to the capacity of the vector, including decreasing its size such as with the shrink_to_fit method, will
//! cause the vector to permanently switch to dynamically allocated storage.
//!
//! \tparam T The type of object that is stored in the small_vector
//! \tparam N The number of preallocated elements stored inside small_vector. It shall be less than Allocator::max_size();
//! \tparam Allocator The allocator used for memory management when the number of elements exceeds N. Use void
//! for the default allocator
//! |tparam Options A type produced from \c boost::container::small_vector_options.
//! \tparam Options A type produced from \c boost::container::small_vector_options.
template <class T, std::size_t N, class Allocator BOOST_CONTAINER_DOCONLY(= void), class Options BOOST_CONTAINER_DOCONLY(= void) >
class small_vector
: public small_vector_base<T, Allocator, Options>
Expand Down

0 comments on commit d3494d2

Please sign in to comment.