>>726
これでええやろ
template<typename...>
struct a {
 inline static std::mutex m;
};
template<typename T>
auto f() {
 auto g = lock_guard{a<T>::m};
}