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:
Phil Edwards 2002-03-06 20:08:18 +00:00
parent d094b0b313
commit d95336cf37
2 changed files with 11 additions and 0 deletions

View File

@ -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>
* include/bits/c++config: Fix misplaced leading blanks on first line.

View File

@ -484,9 +484,13 @@ public:
_M_insert_aux(end(), __x);
}
#ifdef _GLIBCPP_DEPRECATED
/**
* Add an element to the end of the vector. The element is
* default-constructed.
*
* @note You must define _GLIBCPP_DEPRECATED to make this visible; see
* c++config.h.
*/
void
push_back()
@ -498,6 +502,7 @@ public:
else
_M_insert_aux(end());
}
#endif
void
swap(vector<_Tp, _Alloc>& __x)