Created
March 28, 2018 21:36
-
-
Save Thors-Anvil/f1e9d34be3c3cefb45c292b23f10a286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct alt | |
{ | |
int x; | |
int y; | |
int& operator[](int index){return index == 0 ? x : y); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment