I was looking into <algorithm>
's fill
and fill_n
function, and to me they seem to do about the same thing but are just defined differently.
Is this true, and if not, how are they different?
The wording for their descriptions seem to be about the same (that I read from MSDN at fill_n
and fill
).
If they are the same, what is the advantage of having both of these functions available?
It is to just give a developer more options, or is one faster than the other?