#pragma once #include template void update_min(T &x, T a) { x = std::min(x, a); }