First Commit
This commit is contained in:
commit
dbdc5bcc4a
1791 files changed
+489451
No files matched your search
@@ -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];
|
||||
}
|
||||
Reference in new issue
Block a user