博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

c++函数可以作为lvalue

Posted on 2007-10-27 19:36  arowana  阅读(160)  评论(0编辑  收藏  举报
An lvalue is an expression that yields an object reference, such as a variable name, an array subscript reference, a dereferenced pointer, or a function call that returns a reference.
----c++ in a nutshell

说的很清楚了,返回引用的函数可以做左值。无意中翻开这本书看到的。一直没有系统的学习C++,真的没有想到函数可以是左值.