Commit d95336cf by Phil Edwards

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
parent d094b0b3
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.
2002-03-05 Benjamin Kosnik <bkoz@redhat.com>
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment