fill in c++ code example
Example 1: fill c++
fill (ForwardIterator first, ForwardIterator last, const T& val);
//EXample:
fill(v.begin(), v.end(), -1);
Example 2: c++ vector fill
#include <algorithm>
#include <vector>
std::fill(v.begin(), v.end(), value);