2012-04-10から1日間の記事一覧

Boost.Context アルゴリズムを中断可能にする

C++

既存のアルゴリズム関数の実行を中断可能にしてみました。 対象は、Boost.Graphの最短経路計算アルゴリズムです。 #include <iostream> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/dijkstra_shortest_paths.hpp> #include <boost/assign/list_of.hpp> #include <functional> #include "continuation.hpp" typedef boost::adjacency_list</functional></boost/assign/list_of.hpp></boost/graph/dijkstra_shortest_paths.hpp></boost/graph/adjacency_list.hpp></iostream>