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

Method AddChannel

Source/ChannelOrder.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool CChannelOrder::AddChannel(stChannelID chan) {
77 std::size_t index = order_.size();
78 if (indices_.try_emplace(chan, index).second) {
79 order_.push_back(chan);
80 return true;
81 }
82 return false;
83}
84
85bool CChannelOrder::RemoveChannel(stChannelID chan) {
86 if (auto it = indices_.find(chan); it != indices_.end()) {

Callers 4

MakeFullOrderMethod · 0.80
MakeChannelMapMethod · 0.80
BuiltinOrderMethod · 0.80
CanonicalizeMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected