複数変数宣言をして同時に入力もするやつ
(Util/IO/var-declaration-with-input.hpp)
Required by
Verified with
Code
#pragma once
#include <iostream>
/**
* @brief 複数変数宣言をして同時に入力もするやつ
*/
template <class T>
std::istream& operator,(std::istream& is, T& rhs) {
return is >> rhs;
}
#define var(type, ...) \
type __VA_ARGS__; \
std::cin >> __VA_ARGS__
#line 2 "Util/IO/var-declaration-with-input.hpp"
#include <iostream>
/**
* @brief 複数変数宣言をして同時に入力もするやつ
*/
template <class T>
std::istream& operator,(std::istream& is, T& rhs) {
return is >> rhs;
}
#define var(type, ...) \
type __VA_ARGS__; \
std::cin >> __VA_ARGS__
Back to top page