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

Method first

util/generic/array_ref.h:180–183  ·  view source on GitHub ↗

* Obtains a ref that is a view over the first `count` elements of this TArrayRef. * * The behavior is undefined if count > size(). */

Source from the content-addressed store, hash-verified

178 * The behavior is undefined if count > size().
179 */
180 TArrayRef first(size_t count) const {
181 Y_ASSERT(count <= size());
182 return TArrayRef(data(), count);
183 }
184
185 /**
186 * Obtains a ref that is a view over the last `count` elements of this TArrayRef.

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 3

TArrayRefClass · 0.70
dataFunction · 0.70
sizeFunction · 0.50

Tested by

no test coverage detected