File: ints.cpp

package info (click to toggle)
range-v3 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,652 kB
  • sloc: cpp: 76,839; xml: 226; sh: 89; python: 34; makefile: 19; perl: 15
file content (12 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
//! [ints example]
#include <iostream>
#include <vector>
#include <range/v3/view/iota.hpp>

int main()
{
    auto numbers = ranges::views::ints(3, 7);

    std::cout << numbers << '\n';
}
//! [ints example]