Code as Fast as You Can Think
"I have only proved my code correct, not tested it" - Donald Knuth
Search This Blog
Friday, May 13, 2011
ExceptionalC++ Fun: 6, 7. temporary object and reuse of STL
things to remember:
pass argument as reference while you can
it's good to return a copy instead of a reference from a function; because returning a local reference from a function will bite you later
STL is designed to be resused and efficient. Use it, don't be shy.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Unknown
View my complete profile
No comments:
Post a Comment