MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / With

Method With

Source/SoundChipTypeImpl.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_);

Callers

nothing calls this directly

Calls 1

AddChannelHandlerMethod · 0.80

Tested by

no test coverage detected