4 ms·
If you need an interface to your data, use structs/classes. If you need genericness when the size of the data doesn't change, use templates. If you need gener
by CyberDildonics 11y ago
If you need an interface to your data, use structs/classes.
If you need genericness when the size of the data doesn't change, use templates.
If you need genericness when the size of the data does change, use inheritance.
If you need genericness with respect to part of an algorithm, use lambdas.
- whatnotests 11y agoThank you for succinctly putting this to words.