2013-10-30から1日間の記事一覧
std::ref は 変数への参照tを保持するreference_wrapperオブジェクトを生成する std::cref は const版です #include <functional> #include <iostream> void f(int& n1, int& n2, const int& n3) { std::cout << "In function: " << n1 << ' ' << n2 << ' ' << n3 << std::endl; ++</iostream></functional>…