mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add fill() function to std::algorithm
This commit is contained in:
parent
3374eac741
commit
25d17a8831
@ -103,4 +103,11 @@ namespace std
|
||||
*first++ = std::move(*i);
|
||||
return first;
|
||||
}
|
||||
|
||||
template <class ForwardIt, class T>
|
||||
void fill(ForwardIt first, ForwardIt last, const T &value)
|
||||
{
|
||||
for (; first != last; ++first)
|
||||
*first = value;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user