You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
320 B

  1. #pragma once
  2. namespace storm {
  3. namespace utility {
  4. template<class OutputIterator, class Size, class Assignable>
  5. void iota_n(OutputIterator first, Size n, Assignable value)
  6. {
  7. std::generate_n(first, n, [&value]() {
  8. return value++;
  9. });
  10. }
  11. }
  12. }