2009-10-19から1日間の記事一覧
BoostML - 【BGL】 Knight's Tour Example メモ
filteredは、引数で指定された述語を満たす要素を抽出するRangeアダプタです。 #include <iostream> #include <vector> #include <pstade/oven/initial_values.hpp> #include <pstade/oven/io.hpp> #include <pstade/oven/filtered.hpp> using namespace pstade::oven; bool is_even(int x) { return x % 2 == 0; } int main() { const std::vector<int> v…</int></pstade/oven/filtered.hpp></pstade/oven/io.hpp></pstade/oven/initial_values.hpp></vector></iostream>
http://atnd.org/events/1872