diff --git a/include_std/algorithm b/include_std/algorithm index 4febbdd..85eb61b 100644 --- a/include_std/algorithm +++ b/include_std/algorithm @@ -103,4 +103,11 @@ namespace std *first++ = std::move(*i); return first; } + + template + void fill(ForwardIt first, ForwardIt last, const T &value) + { + for (; first != last; ++first) + *first = value; + } }