2008-02-06から1日間の記事一覧

関数内関数イディオム

C++

cppll:11286にあった関数内関数イディオムで、昨日の関数オーバーロード問題を解決をしてみる #include <string> #include <vector> #include <algorithm> using namespace std; double stod(const string& s) { return atof(s.c_str()); } double stod(const wstring& s) { return _wto</algorithm></vector></string>…