mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Update algorithm functions template parameter names
This commit is contained in:
parent
5e0fb5c942
commit
2274089a1c
@ -75,8 +75,8 @@ namespace std
|
|||||||
return last;
|
return last;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class InputIt, class UnaryPredicate>
|
template <class InputIt, class UnaryPred>
|
||||||
constexpr InputIt find_if(InputIt first, InputIt last, UnaryPredicate p)
|
constexpr InputIt find_if(InputIt first, InputIt last, UnaryPred p)
|
||||||
{
|
{
|
||||||
for (; first != last; ++first)
|
for (; first != last; ++first)
|
||||||
if (p(*first))
|
if (p(*first))
|
||||||
@ -85,8 +85,8 @@ namespace std
|
|||||||
return last;
|
return last;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class InputIt, class UnaryPredicate>
|
template <class InputIt, class UnaryPred>
|
||||||
constexpr InputIt find_if_not(InputIt first, InputIt last, UnaryPredicate q)
|
constexpr InputIt find_if_not(InputIt first, InputIt last, UnaryPred q)
|
||||||
{
|
{
|
||||||
for (; first != last; ++first)
|
for (; first != last; ++first)
|
||||||
if (!q(*first))
|
if (!q(*first))
|
||||||
@ -106,8 +106,8 @@ namespace std
|
|||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ForwardIt, class UnaryPredicate>
|
template <class ForwardIt, class UnaryPred>
|
||||||
ForwardIt remove_if(ForwardIt first, ForwardIt last, UnaryPredicate p)
|
ForwardIt remove_if(ForwardIt first, ForwardIt last, UnaryPred p)
|
||||||
{
|
{
|
||||||
first = std::find_if(first, last, p);
|
first = std::find_if(first, last, p);
|
||||||
if (first != last)
|
if (first != last)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user