#pragma once #include namespace sleela::fundamental { template class Future { std::future f_; public: Future()=default; explicit Future(std::futuref):f_(std::move(f)){} bool valid()const noexcept{return f_.valid();} T get(){return f_.get();} }; }