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

oven::cleared

C++

oven::clearedは、空の範囲を返すRangeアダプタです。 #include <cassert> #include <vector> #include <pstade/oven/cleared.hpp> #include <pstade/oven/initial_values.hpp> #include <pstade/oven/equals.hpp> using namespace pstade::oven; int main() { const std::vector<int> v = initial_values(1, 2, 3); const std::vector<int>…</int></int></pstade/oven/equals.hpp></pstade/oven/initial_values.hpp></pstade/oven/cleared.hpp></vector></cassert>