1#ifndef CAPYDI_DYNAMIC_RESOLVER_HPP_
2#define CAPYDI_DYNAMIC_RESOLVER_HPP_
11template<
typename Type>
21 : resolver_ { [&context] {
32 : resolver_ { [context, tag] {
44 return this->resolver_();
48 std::function<ReturnType()> resolver_;
DynamicResolver(meta::wrapped_with< ResolutionContext > auto const &context, tag_t tag)
Definition DynamicResolver.hpp:28
std::expected< meta::RuntimeRef< Type >, Error > ReturnType
Definition DynamicResolver.hpp:15
ReturnType resolve() const
Definition DynamicResolver.hpp:42
DynamicResolver(meta::wrapped_with< ResolutionContext > auto const &context)
Definition DynamicResolver.hpp:18
Definition Decorator.hpp:19
const char * tag_t
Definition TagInput.hpp:9
Error
Enumeration of possible errors during dependency injection resolution.
Definition Error.hpp:26