forked from boostorg/range
Boost.Range correct missing items from merge by merging these changes manually.
This changeset is what should have happened with the prior svn merge operation. [SVN r61519]
This commit is contained in:
@ -22,7 +22,7 @@ namespace boost
|
||||
{
|
||||
|
||||
template< class ForwardRange, class Value >
|
||||
inline void iota( ForwardRange& rng, Value x )
|
||||
inline ForwardRange& iota( ForwardRange& rng, Value x )
|
||||
{
|
||||
BOOST_CONCEPT_ASSERT(( ForwardRangeConcept<ForwardRange> ));
|
||||
typedef BOOST_DEDUCED_TYPENAME range_iterator<ForwardRange>::type iterator_t;
|
||||
@ -30,6 +30,8 @@ inline void iota( ForwardRange& rng, Value x )
|
||||
iterator_t last_target = ::boost::end(rng);
|
||||
for (iterator_t target = ::boost::begin(rng); target != last_target; ++target, ++x)
|
||||
*target = x;
|
||||
|
||||
return rng;
|
||||
}
|
||||
|
||||
} // namespace range
|
||||
|
Reference in New Issue
Block a user