Files
BackOne/ext/libpqxx-7.7.3/config-tests/multidim-subscript.cxx
T
dsutanto dbdc5bcc4a
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
First Commit
2025-11-19 16:23:45 +07:00

15 lines
231 B
C++

// 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];
}