implement pair/tuple input

This commit is contained in:
Johannes Kapfhammer 2019-10-10 14:28:35 +02:00
parent e3f3f6470d
commit 9709a35f46
2 changed files with 10 additions and 2 deletions

View file

@ -27,8 +27,7 @@ signed main() {
a.foo();
a.bar(3,4,"hi");
int i = read_int();
int j = read_int();
auto [i, j] = read<int, int>();
print(i, j);
print("read string",read<string>());