57class PolymorphicHandler {
58 static_assert(std::is_base_of<Interface, Default>::value,
"Interface must be a base class of Default");
60 using Self = PolymorphicHandler<Interface, Default, Hooks>;
69 static Interface&
get() noexcept;
80 template <typename Handler>
101 PolymorphicHandler() noexcept;
103 static PolymorphicHandler& self() noexcept;
105 static Default& getDefault() noexcept;
107 static Interface* getCurrentRelaxed() noexcept;
109 static Interface* getCurrentSync() noexcept;
111 static
bool setHandler(Interface& handler) noexcept;