无操作“不做任何操作”函数对象存在于C ++(0x)? [英] Does a no-op "do nothing" function object exist in C++(0x)?

查看:177
本文介绍了无操作“不做任何操作”函数对象存在于C ++(0x)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到这是一个可笑的问题,需要不到2秒的时间来实现。但我模糊地记得阅读,一个是用新的标准介绍。

I realize this is a ludicrous question for something that takes less than 2 seconds to implement. But I vaguely remember reading that one was introduced with the new standard.

我grep'ed VC10的标题,没有出来。你能帮我吗?这是臭虫我! :)

I grep'ed VC10's headers and came up with nothing. Can you help? It's bugging me! :)

edit:
第二个想法是,我记住的新函数可能是不相关的

edit: On second thought, the new functor I was remembering was probably the unrelated std::default_deleter.

这篇关于无操作“不做任何操作”函数对象存在于C ++(0x)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆