2009-10-12から1日間の記事一覧

oven::cycled

C++

cycledは、元となる範囲から循環する範囲(circular range)を作成するRangeアダプタです。以下の場合は、"abc"を3回繰り返す範囲を生成しています。 #include <iostream> #include <string> #include <pstade/oven/algorithm.hpp> #include <pstade/oven/cycled.hpp> using namespace pstade::oven; struct disp { template <class T> void op</class></pstade/oven/cycled.hpp></pstade/oven/algorithm.hpp></string></iostream>…