COMMON: Make value parameter of fill a const reference.
This commit is contained in:
parent
61795739f8
commit
c2fd35c9ed
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ char *fill(char *first, char *last, Value val) {
|
|||
* Sets all elements in the range [first, last) to val.
|
||||
*/
|
||||
template<class In, class Value>
|
||||
In fill(In first, In last, Value val) {
|
||||
In fill(In first, In last, const Value &val) {
|
||||
while (first != last)
|
||||
*first++ = val;
|
||||
return first;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue