camelCase
The Case of the Mysterious Camel.
- Reaction score
- 362
[Is vs Has] Which is more efficient? Which should I use?
Well,
A few times, I find myself using a class only as a wrapper for std::vector, std::map, etc. and add along with a few extra methods/members that I need.
So, is it better if I make the container a member of the class or the parent of the class?
Which is more efficient?
This, of course, extends to other examples but I can't think of anything off the top of my head.
Well,
A few times, I find myself using a class only as a wrapper for std::vector, std::map, etc. and add along with a few extra methods/members that I need.
So, is it better if I make the container a member of the class or the parent of the class?
Which is more efficient?
This, of course, extends to other examples but I can't think of anything off the top of my head.