Operators in C and C++: Difference between revisions

Content deleted Content added
Relational: Less noise
Member and pointer: Use auto width
Line 285:
! outside class
|-
| width="23%" {{rh}} colspan="2" | [[Indexer (programming)|Subscript]]
| width="11%" align="center" | <code>a'''['''b''']'''</code><code>a'''<:'''b''':>'''</code><ref>{{Cite web |title=ISO/IEC 9899:1999 specification, TC3 |url=https://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf#%5B%7B%22num%22%3A148%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C-27%2C816%2Cnull%5D |at=p. 64, § 6.4.6 ''Ponctuators'' para. 3}}</ref>
| width="8%" {{yes}}
| width="8%" {{yes}}
| {{cpp|1=R& K::operator [](S b);}}<br/>{{cpp|1=R& K::operator [](S b, ...); // since C++23}}<br/>
| width="25%" {{n/a}}
|-
| {{rh}} colspan="2" | Indirection ("object pointed to by ''a''")