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: