copy, copy_if InputIterator 対応

This commit is contained in:
bolero-MURAKAMI 2011-10-06 15:00:08 +09:00
parent 9297b36d0b
commit ed469abdda
6 changed files with 181 additions and 58 deletions

View file

@ -306,18 +306,18 @@ namespace sprout {
{
return sprout::random::random_iterator<Engine>();
}
} // namespace random
//
// next
//
template<typename Engine, typename Distribution>
SPROUT_CONSTEXPR sprout::random::random_iterator<Engine, Distribution> next(
sprout::random::random_iterator<Engine, Distribution> const& it
)
{
return it();
}
//
// next
//
template<typename Engine, typename Distribution>
SPROUT_CONSTEXPR sprout::random::random_iterator<Engine, Distribution> next(
sprout::random::random_iterator<Engine, Distribution> const& it
)
{
return it();
}
} // namespace random
using sprout::random::random_iterator;
} // namespace sprout