Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていることKei Nakazawa
Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていることKei Nakazawa
Boost 1.43.0から入ったFunctional/Factoryは、ユーザーコードではどういったときに使うのかと思っていたら、bindと組み合わせてコンストラクタの部分評価に使えそうです。 こんな感じ。 #include <boost/functional/value_factory.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/assert.hpp> struct Point { int x, y; Point(int x_, int y_) : x(x_), y(y_) {} }; int main() { boost::function<Point(int)> f = boost::bind(boost::value_factory<Point>(), 3, _1); c
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Boost C++ Libraries ...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards Using incomplete classes for implementation hiding The "Pimpl" idiom Using abstract classes for implementation hiding Preventing delete px.get() Using a shared_ptr to hold a pointer to an array Encapsulating allocation details,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く