mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
add pop_back()
This commit is contained in:
parent
3f501194d0
commit
5eaed775da
@ -633,6 +633,17 @@ push_back(const value_type &key) {
|
|||||||
_vector.push_back(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
|
// Function: ordered_vector::nci
|
||||||
// Access: Private
|
// Access: Private
|
||||||
|
@ -201,6 +201,7 @@ public:
|
|||||||
bool verify_list_nonunique() const;
|
bool verify_list_nonunique() const;
|
||||||
|
|
||||||
INLINE void push_back(const VALUE_TYPE &key);
|
INLINE void push_back(const VALUE_TYPE &key);
|
||||||
|
INLINE void pop_back();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
INLINE ITERATOR nci(CONST_ITERATOR i);
|
INLINE ITERATOR nci(CONST_ITERATOR i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user