Вопросы по теме 'result-of'

С++ 11 result_of вывести мой тип функции не удалось
Я пробовал программу ниже: #include<type_traits> using namespace std; template <class F, class R = typename result_of<F()>::type> R call(F& f) { return f(); } int answer() { return 42; } int main() { call(answer);...
69 просмотров
schedule 14.01.2024