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

Method Consume

util/string/split.h:762–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760
761 template <class Consumer, std::enable_if_t<std::is_same<decltype(std::declval<Consumer>()(std::declval<TStringBufType>())), void>::value, int>* = nullptr>
762 inline void Consume(Consumer&& f) {
763 for (auto&& it : *this) {
764 f(it.Token());
765 }
766 }
767
768 template <class Consumer, std::enable_if_t<std::is_same<decltype(std::declval<Consumer>()(std::declval<TStringBufType>())), bool>::value, int>* = nullptr>
769 inline bool Consume(Consumer&& f) {

Calls 2

fFunction · 0.50
TokenMethod · 0.45

Tested by

no test coverage detected