countingはboost::counting_iterator rangeを作成するヘルパ関数オブジェクトです。
以下のプログラムの場合は、0から4までカウントする範囲を作成します。
#include <iostream> #include <pstade/oven/counting.hpp> #include <pstade/oven/io.hpp> using namespace pstade::oven; int main() { std::cout << counting(0, 5) << std::endl; }
{0,1,2,3,4}