|
capydi
|
Resolution concept and result type for dependency injection queries. More...
#include <capymeta/concepts/WrappedWIth.hpp>#include <capymeta/primitives/referencing/Reference.hpp>#include <type_traits>#include <expected>

Go to the source code of this file.
Namespaces | |
| namespace | capy |
| namespace | capy::di |
Concepts | |
| concept | capy::di::Resolution |
Resolution concept and result type for dependency injection queries.
A resolution represents the successful resolution of a dependency: it is a reference to an object of the requested type, wrapped in std::expected to handle errors gracefully.
The Resolution concept enforces that:
std::expected<Reference<Dependency>, Error>Error enum