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

Method last

util/generic/array_ref.h:190–193  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

188 * The behavior is undefined if count > size().
189 */
190 TArrayRef last(size_t count) const {
191 Y_ASSERT(count <= size());
192 return TArrayRef(end() - count, end());
193 }
194
195 /**
196 * Obtains a ref that is a view over the `count` elements of this TArrayRef starting at `offset`.

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 3

TArrayRefClass · 0.70
endFunction · 0.70
sizeFunction · 0.50

Tested by

no test coverage detected