2013-11-06から1日間の記事一覧

cpprefjp更新

C++

<type_traits>に、以下のリファレンスを追加しました add_pointer remove_pointer</type_traits>

Boost.Graph A*アルゴリズムで最短経路

C++

まだよく理解しないで書いてるので、あまり参考にはしないでください。 edge weightとcost両方が必要なあたりがよくわからない。ヒューリスティック関数の実装むずかしい。 #include <iostream> #include <string> #include <utility> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/astar_search.hpp> using Graph = boost::adjacen</boost/graph/astar_search.hpp></boost/graph/adjacency_list.hpp></utility></string></iostream>…

Boost.SpiritベースのJSONパーサー

C++

cierelabs / json_spirit - GitHub Boost.Spirit開発チームの方が作っているJSONパーサーです。

C++14 make_unique()

C++

N3656 make_unique (Revision 1) C++14では、std::unique_ptrクラスのオブジェクトを生成するヘルパー関数として、make_unique()が追加されます。 // <memory> namespace std { template<class T, class... Args> unique_ptr<T> make_unique(Args&&... args); template<class T> unique_ptr<T> make_unique(s</t></class></t></class></memory>…