12 #ifndef QMCPLUSPLUS_RESOURCHANDLE_H 13 #define QMCPLUSPLUS_RESOURCHANDLE_H 26 using Base = std::optional<std::reference_wrapper<RS>>;
32 operator bool()
const {
return Base::has_value(); }
37 operator RS&() {
return this->value(); }
38 operator const RS&()
const {
return Base::value(); }
42 RS& res = Base::value();
helper functions for EinsplineSetBuilder
ResourceHandle manages the temporary resource referenced from a collection.
const RS & getResource() const
std::optional< std::reference_wrapper< qmcplusplus::BareKineticEnergy::MultiWalkerResource > > Base