mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Fixes counting erros/typos in I.14
This commit is contained in:
@@ -1424,7 +1424,7 @@ This `draw2()` passes the same amount of information to `draw()`, but makes the
|
|||||||
InputIterator2 first2, InputIterator2 last2,
|
InputIterator2 first2, InputIterator2 last2,
|
||||||
OutputIterator result, Compare comp);
|
OutputIterator result, Compare comp);
|
||||||
|
|
||||||
Here, we have three template arguments and five function arguments.
|
Here, we have four template arguments and six function arguments.
|
||||||
To simplify the most frequent and simplest uses, the comparison argument can be defaulted to `<`:
|
To simplify the most frequent and simplest uses, the comparison argument can be defaulted to `<`:
|
||||||
|
|
||||||
template<class InputIterator1, class InputIterator2, class OutputIterator>
|
template<class InputIterator1, class InputIterator2, class OutputIterator>
|
||||||
@@ -1435,7 +1435,7 @@ To simplify the most frequent and simplest uses, the comparison argument can be
|
|||||||
This doesn't reduce the total complexity, but it reduces the surface complexity presented to many users.
|
This doesn't reduce the total complexity, but it reduces the surface complexity presented to many users.
|
||||||
To really reduce the number of arguments, we need to bundle the arguments into higher-level abstractions:
|
To really reduce the number of arguments, we need to bundle the arguments into higher-level abstractions:
|
||||||
|
|
||||||
template<class InputRange2, class InputRange2, class OutputIterator>
|
template<class InputRange1, class InputRange2, class OutputIterator>
|
||||||
OutputIterator merge(InputRange1 r1, InputRange2 r2, OutputIterator result);
|
OutputIterator merge(InputRange1 r1, InputRange2 r2, OutputIterator result);
|
||||||
|
|
||||||
Grouping arguments into "bundles" is a general technique to reduce the number of arguments and to increase the opportunities for checking.
|
Grouping arguments into "bundles" is a general technique to reduce the number of arguments and to increase the opportunities for checking.
|
||||||
|
|||||||
Reference in New Issue
Block a user