2009-09-22から1日間の記事一覧

oven::steps

C++

stepsは、イテレータをn個ずつ進めるようにするためのRangeアダプタです。 以下の場合は、{0, 1, 2, 3...99}の範囲をstepsを使用して10ずつ進めています。 #include <iostream> #include <pstade/oven/counting.hpp> #include <pstade/oven/steps.hpp> #include <pstade/oven/io.hpp> using namespace pstade::oven; int main() { std::cout <</pstade/oven/io.hpp></pstade/oven/steps.hpp></pstade/oven/counting.hpp></iostream>…