forked from boostorg/algorithm
Merge a bunch of minor Boost.Algorithm changes to release
[SVN r86757]
This commit is contained in:
1 parent
5988a55b96
commit
685a76f094
5 files changed
+27
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user