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

std::asyncめも

std::asyncなるものがあると聞いたので、とりあえずどんな感じで使えばいいのかをめも。 まずはこちらから。 #include <iostream> #include <thread> #include <future> #include <chrono> using namespace std; class Hoge{ public: Hoge(){ cout << "Hoge::Hoge()" << endl; } ~Hoge(){ cout <</chrono></future></thread></iostream>…