3 ms·
also STL vector in C++?
by dalek_cannes 13y ago
also STL vector in C++?
- voyou 13y agoAIUI, multiple Go slices can access the same underlying array, whereas each C++ vector has its own storage. The C++ equivalent to a Go slice would be a pair of iterators. C++'s system is more flexible, though; I think you can only obtain Go slices over arrays, but C++ iterators are used to represent views over all collection types (linked lists, maps, etc).
- vanderZwan 13y ago> C++'s system is more flexible, though Well you are comparing templates to non-templates...