]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Reduce <functional> inclusion to <stl_algobase.h>
authorFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 22 May 2023 17:21:05 +0000 (19:21 +0200)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Thu, 1 Jun 2023 04:26:48 +0000 (06:26 +0200)
commit940645cec500ab5fda849130e5353e86dce3bed5
tree24f73227ea0c959267e794680486400be2a33cb5
parent0a479c31b515ee872f48d5b53254a01da0fba61f
libstdc++: Reduce <functional> inclusion to <stl_algobase.h>

Move the std::search definition from stl_algo.h to stl_algobase.h and use
the later in <functional>.

For consistency also move std::__parallel::search and associated helpers from
<parallel/stl_algo.h> to <parallel/stl_algobase.h> so that std::__parallel::search
is accessible along with std::search.

libstdc++-v3/ChangeLog:

* include/bits/stl_algo.h
(std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
* include/bits/stl_algobase.h: ...here.
* include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
* include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
(std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
Move...
* include/parallel/algobase.h: ...here.
* include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
includes. Include <bits/stl_algobase.h>.
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/include/experimental/functional
libstdc++-v3/include/parallel/algo.h
libstdc++-v3/include/parallel/algobase.h
libstdc++-v3/include/std/functional