Content deleted Content added
m →C++: wording |
m →C++: wording |
||
Line 4:
== Implementations ==
=== C++ ===
In C++ one can emulate indexing by overloading the {{c++|[]}} operator. The expression {{c++|a[b...]}} translates to a call to the user-defined function {{c++|operator[]}} as {{c++|(a).operator[](b...)}}<ref>{{cite web|url=https://en.cppreference.com/w/cpp/language/operators|title=
<syntaxhighlight lang="c++">
struct vector{
|