What's the recommended practice regarding the using
declaration (e.g using std::vector;
)?
Should it be at the top of the cpp/cc file or just in the scope where it's being used?
Limiting its scope would be better in general, but it would take a non-trivial amount of code in your source file to make a difference in practice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With