2021年10月27日

C++ std::function的简单实现以及函数指针

摘要: 敢在简历里写“精通C++”或“熟练掌握C++”的人,都已经被面试官问死了…… 今天闲来无事,想着怎么实现std::function,反正待着也没意思。 首先通过使用方式下手: 1 myfunction<int(const std::string&)> fc = test_func; 2 int le 阅读全文

posted @ 2021-10-27 12:26 __Even 阅读(1453) 评论(0) 推荐(0) 编辑

导航