Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add notice in push_back that size must be less than capacity
  • Loading branch information
Mortal committed Oct 26, 2012
1 parent d75f748 commit 4ac0315
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tpie/internal_stack.h
Expand Up @@ -54,6 +54,8 @@ class internal_stack: public internal_stack_vector_base<T,internal_stack<T> > {

///////////////////////////////////////////////////////////////////////////
/// \brief Add an element to the top of the stack.
/// If size() is equal to the capacity (set in the constructor or in
/// resize()), effects are undefined. resize() is not called implicitly.
///
/// \param val The element to add.
///////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions tpie/internal_vector.h
Expand Up @@ -80,6 +80,8 @@ class internal_vector: public internal_stack_vector_base<T,internal_vector<T> >

///////////////////////////////////////////////////////////////////////////
/// \brief Add an element to the end of the vector.
/// If size() is equal to the capacity (set in the constructor or in
/// resize()), effects are undefined. resize() is not called implicitly.
///
/// Iterators are invalidated by this call.
///
Expand Down

0 comments on commit 4ac0315

Please sign in to comment.