MCPcopy Create free account
hub / github.com/boost-ext/di / expr

Class expr

test/ft/di_bind.cpp:657–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656template <class TIf, class TImpl>
657struct expr {
658 template <class TInjector>
659 TIf &operator()(const TInjector &injector) {
660 return injector.template create<TImpl &>();
661 }
662};
663test bind_to_function_via_interface_inject = [] {
664 struct i {
665 virtual ~i() = default;

Callers 1

apply_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected