add pop_back()

This commit is contained in:
David Rose 2005-05-13 19:57:16 +00:00
parent 3f501194d0
commit 5eaed775da
2 changed files with 12 additions and 0 deletions

View File

@ -633,6 +633,17 @@ push_back(const value_type &key) {
_vector.push_back(key);
}
////////////////////////////////////////////////////////////////////
// Function: ordered_vector::pop_back
// Access: Public
// Description: Removes the last element at the end of the vector.
////////////////////////////////////////////////////////////////////
template<class Key, class Compare>
INLINE void ordered_vector<Key, Compare>::
pop_back() {
_vector.pop_back();
}
////////////////////////////////////////////////////////////////////
// Function: ordered_vector::nci
// Access: Private

View File

@ -201,6 +201,7 @@ public:
bool verify_list_nonunique() const;
INLINE void push_back(const VALUE_TYPE &key);
INLINE void pop_back();
private:
INLINE ITERATOR nci(CONST_ITERATOR i);