Jerry @DOA&INPAC, SJTU

Working out everything from the first principles.

导航

2020年4月21日 #

引用传参与reference_wrapper

摘要: 本文是``系列的第3篇。 引用传参 我有一个函数: 因为参数类型是 ,所以函数能够修改传入的整数,而非其拷贝。 然后我用 把它和一个 绑定起来: int i = 1; auto f = std::bind(modify, i); f(); std::cout `对象。 reference_wrapp 阅读全文

posted @ 2020-04-21 23:47 Jerry_SJTU 阅读(1716) 评论(0) 推荐(0) 编辑