由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] Returning heavy weight object in C++ function
相关主题
what is the most efficient way to trim a string in C++?[help] how do I improve my coding quality?
good C++ open source project?数八皇后解法数目:python只要9行
C怪问题一个单开主题:为何痛恨python
code swarm (video)C++11的lambda不会破坏可读性吗?
which Regular Expression lib in C++ do you prefer?Java的readability不佳 (转载)
perl or python?stl 源代码疑问
有没有办法让一个类的变量只读,不是const?reverse bits 的题目
请教基本的时间输入的问题C++Indent的问题
相关话题的讨论汇总
话题: returning话题: c++话题: object
进入Programming版参与讨论
1 (共1页)
I*******e
发帖数: 1879
1
☆─────────────────────────────────────☆
mrmaoren (我是毛人毛人是我我是毛人毛人是我) 于 (Fri Jun 12 23:40:02 2009, 美东) 提到:
看到有人写的code里有这样的function:
std::vector GetList();
我一直认为这样很浪费,不如用
void GetList( std::vector & vec );
但是那人告诉我说modern compiler都会自动optimize,不会有什么overhead。难道我的
知识又过时了?
☆─────────────────────────────────────☆
goodbug (好虫) 于 (Fri Jun 12 23:45:55 2009, 美东) 提到:
efficiency is so overrated, readability is the key for most
maintable system. You can always spend some extra time on
op
1 (共1页)
进入Programming版参与讨论
相关主题
Indent的问题which Regular Expression lib in C++ do you prefer?
Why Avoid array indexing. Use pointers.perl or python?
does any one know the answer?有没有办法让一个类的变量只读,不是const?
命令行模式下可以安装的完整的gcc软件包请教基本的时间输入的问题C++
what is the most efficient way to trim a string in C++?[help] how do I improve my coding quality?
good C++ open source project?数八皇后解法数目:python只要9行
C怪问题一个单开主题:为何痛恨python
code swarm (video)C++11的lambda不会破坏可读性吗?
相关话题的讨论汇总
话题: returning话题: c++话题: object