Re:Tell HN: C Experts Panel – Ask us anything about C
by kazinator on Tuesday April 14, 2020 @05:28PM
(#22871694)
C++ has features in its syntax so that you can write objects that behave like arrays: support [] indexing via operator [], and can be passed around (according to whatever ownershihp discipline you want: duplication, reference counting). C++ provides such objects in its standard library, such as: std::basic_string<T> and std::vector<T>. There is a newer std::array also.
[ Parent
| on HN ]