Skip to content

Commit 4bf5bd2

Browse files
frederick-vs-jatkoeppe
authored andcommitted
[alg.replace] Fix misapplication of P2248R8 to std::replace_copy
Removes wrongly added default template arguments that are not present in that paper.
1 parent 407c552 commit 4bf5bd2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/algorithms.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5562,14 +5562,12 @@
55625562
\indexlibraryglobal{replace_copy}%
55635563
\indexlibraryglobal{replace_copy_if}%
55645564
\begin{itemdecl}
5565-
template<class InputIterator, class OutputIterator,
5566-
class T = iterator_traits<OutputIterator>::value_type>
5565+
template<class InputIterator, class OutputIterator, class T>
55675566
constexpr OutputIterator
55685567
replace_copy(InputIterator first, InputIterator last,
55695568
OutputIterator result,
55705569
const T& old_value, const T& new_value);
5571-
template<class ExecutionPolicy, class ForwardIterator1, class ForwardIterator2,
5572-
class T = iterator_traits<ForwardIterator2>::value_type>
5570+
template<class ExecutionPolicy, class ForwardIterator1, class ForwardIterator2, class T>
55735571
ForwardIterator2
55745572
replace_copy(ExecutionPolicy&& exec,
55755573
ForwardIterator1 first, ForwardIterator1 last,

0 commit comments

Comments
 (0)