Merge a bunch of minor Boost.Algorithm changes to release

[SVN r86757]
This commit is contained in:
Marshall Clow
2013-11-18 16:52:09 +00:00
parent 5988a55b96
commit 685a76f094
5 changed files with 27 additions and 17 deletions

View File

@ -63,8 +63,8 @@ void iota ( Range &r, T value )
template <typename OutputIterator, typename T>
OutputIterator iota_n ( OutputIterator out, T value, std::size_t n )
{
while ( n-- > 0 )
*out++ = value++;
for ( ; n > 0; --n, ++value )
*out++ = value;
return out;
}