| 68 | }; |
| 69 | |
| 70 | int main() { |
| 71 | constexpr auto i = 42; |
| 72 | constexpr auto d = 87.0; |
| 73 | |
| 74 | /*<<module configuration with movable injector>>*/ |
| 75 | // clang-format off |
| 76 | auto movable_injector = di::make_injector( |
| 77 | di::bind<double>().to(d) |
| 78 | ); |
| 79 | // clang-format on |
| 80 | |
| 81 | /*<<create injector and pass `module1`, `module2` and `exposed_module`>>*/ |
| 82 | // clang-format off |
| 83 | auto injector = di::make_injector( |
| 84 | module1() |
| 85 | , module2(i) |
| 86 | , exposed_module() |
| 87 | , std::move(movable_injector) |
| 88 | ); |
| 89 | // clang-format on |
| 90 | |
| 91 | /*<<create `app`>>*/ |
| 92 | injector.create<app>(); |
| 93 | } |
nothing calls this directly
no test coverage detected