MCPcopy Create free account
hub / github.com/catboost/catboost / Dec

Method Dec

library/cpp/containers/comptrie/make_fast_layout.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 size_t Dec(size_t offset) {
109 if (IsTree) {
110 return 0;
111 }
112 ui8& count = Body.at(offset / MinNodeSize);
113 Y_ASSERT(count > 0);
114 if (count != MaxCount) {
115 --count;
116 }
117 return count;
118 }
119
120 void Swap(TTrieNodeCounts& other) {
121 Body.swap(other.Body);

Callers 1

GetMethod · 0.45

Calls 1

atMethod · 0.45

Tested by

no test coverage detected