mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 01:05:00 +08:00
re PR libstdc++/5734 (2 extensions (empty push_back() and is_sorted()) are not documented)
2002-03-06 Phil Edwards <pme@gcc.gnu.org> PR libstdc++/5734 * include/bits/stl_vector.h (vector::push_back()): Guard with _GLIBCPP_DEPRECATED. From-SVN: r50375
This commit is contained in:
parent
d094b0b313
commit
d95336cf37
@ -1,3 +1,9 @@
|
|||||||
|
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
|
||||||
|
|
||||||
|
PR libstdc++/5734
|
||||||
|
* include/bits/stl_vector.h (vector::push_back()): Guard with
|
||||||
|
_GLIBCPP_DEPRECATED.
|
||||||
|
|
||||||
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
|
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
|
||||||
|
|
||||||
* include/bits/c++config: Fix misplaced leading blanks on first line.
|
* include/bits/c++config: Fix misplaced leading blanks on first line.
|
||||||
|
@ -484,9 +484,13 @@ public:
|
|||||||
_M_insert_aux(end(), __x);
|
_M_insert_aux(end(), __x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _GLIBCPP_DEPRECATED
|
||||||
/**
|
/**
|
||||||
* Add an element to the end of the vector. The element is
|
* Add an element to the end of the vector. The element is
|
||||||
* default-constructed.
|
* default-constructed.
|
||||||
|
*
|
||||||
|
* @note You must define _GLIBCPP_DEPRECATED to make this visible; see
|
||||||
|
* c++config.h.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
push_back()
|
push_back()
|
||||||
@ -498,6 +502,7 @@ public:
|
|||||||
else
|
else
|
||||||
_M_insert_aux(end());
|
_M_insert_aux(end());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
swap(vector<_Tp, _Alloc>& __x)
|
swap(vector<_Tp, _Alloc>& __x)
|
||||||
|
Loading…
Reference in New Issue
Block a user