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

Function Enumerate

library/cpp/iterator/enumerate.h:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86//! Usage: for (auto [i, x] : Enumerate(container)) {...}
87template <typename TContainerOrRef>
88auto Enumerate(TContainerOrRef&& container) {
89 return NPrivate::TEnumerator<TContainerOrRef, std::size_t>{std::forward<TContainerOrRef>(container)};
90}
91
92//! Usage: for (auto [i, x] : SEnumerate(container)) {...}
93// The index is signed for codebases that prefer signed numerics (such as YTsaurus).

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected