3 ms·
If C++ was JavaScript you would do: import {vector} from 'std'; Which I think is a reasonable compromise, you're only bringing vector into scope rather than a
by tylerchurch 2y ago
If C++ was JavaScript you would do:
import {vector} from 'std';
Which I think is a reasonable compromise, you're only bringing vector into scope rather than all of the standard library.
- Jtsummers 2y agoC++: using std::vector; https://en.cppreference.com/w/cpp/language/namespace#Using-directives https://en.cppreference.com/w/cpp/language/namespace#Using-d...