| 62 | |
| 63 | template <typename U, typename SubindexT> |
| 64 | CChipHandlerBuilder With(SubindexT subindex) && { |
| 65 | auto sub = static_cast<std::uint8_t>(subindex); |
| 66 | if constexpr (std::is_constructible_v<U, stChannelID, T &>) |
| 67 | chip_->AddChannelHandler(std::make_unique<U>(stChannelID {instance_, id_, sub}, *chip_)); |
| 68 | else |
| 69 | chip_->AddChannelHandler(std::make_unique<U>(stChannelID {instance_, id_, sub})); |
| 70 | return {std::move(chip_), instance_, id_}; |
| 71 | } |
| 72 | |
| 73 | operator std::unique_ptr<CChipHandler>() && noexcept { |
| 74 | return std::move(chip_); |
nothing calls this directly
no test coverage detected