[libstdc++-v3] Remove std::construct and std::destroy
Stephen M. Webb
stephen@bregmasoft.com
Sun Jul 1 06:04:00 GMT 2001
The HP version of the STL used functions construct() and destroy() to construct
and destroy objects. These functions are not a part of the standard and had
been (mostly) replaced by the internal library functions _Construct() and
_Destroy().
This patch fixes the last few occurrences of the HP legacy functions in the
GCC version of the library and removes their definitions. There is no change
in functionality or generated code.
The definitions remain available through the backwards headers.
Bootstrapped on an i686-pc-linux-gnu system, no regressions. Targetted at the
trunk but is good for the 3.01 branch, too.
2001-07-01 Stephen M. Webb <stephen@bregmasoft.com>
* include/bits/stl_construct.h (construct): Remove.
(destroy): Remove.
(__destroy): Replaced by use of iterator_traits.
* include/bits/stl_deque.h: replaced HP iterator functions with iterator_traits.
(construct): changed to _Construct.
(destroy): changed to _Destroy.
* include/bits/stl_tempbuf.h: Same.
* include/bits/stl_tree.h: Same.
* include/bits/stl_vector.h: Same.
* include/backward/iterator.h (construct): moved definition to here.
(destroy): Same.
--
Stephen M. Webb
stephen at bregmasoft dot com
More information about the Libstdc++
mailing list