mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-06-30 18:09:18 +00:00
Add fill() function to std::algorithm
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user