Re-add...

This commit is contained in:
Adam Ierymenko 2022-06-23 13:24:33 -04:00
commit b1faebae4a
333 changed files with 95037 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// Test for multidimensional subscript operator support.
// Proposed for C++23: P2128R6.
struct table
{
int width = 100;
int operator[](int x, int y) const { return x + width * y; }
};
int main()
{
return table{}[0, 0];
}