mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Re-add...
This commit is contained in:
parent
e96515433d
commit
b1faebae4a
333 changed files with 95037 additions and 0 deletions
14
ext/libpqxx-7.7.3/config-tests/multidim-subscript.cxx
Normal file
14
ext/libpqxx-7.7.3/config-tests/multidim-subscript.cxx
Normal 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];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue