2013-12-06から1日間の記事一覧
template structみたいな感じになります。 #include <iostream> #include <functional> #include <tuple> int main() { const auto f = [](auto arg) { using type = decltype(arg); // member variable type value = arg; // member function std::function<type(void)> get; std::function<void(type)> set; // c</void(type)></type(void)></tuple></functional></iostream>…