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

Method subspan

util/generic/array_ref.h:200–203  ·  view source on GitHub ↗

* Obtains a ref that is a view over the `count` elements of this TArrayRef starting at `offset`. * * The behavior is undefined in either offset or count is out of range. */

Source from the content-addressed store, hash-verified

198 * The behavior is undefined in either offset or count is out of range.
199 */
200 TArrayRef subspan(size_t offset) const {
201 Y_ASSERT(offset <= size());
202 return TArrayRef(data() + offset, size() - offset);
203 }
204
205 TArrayRef subspan(size_t offset, size_t count) const {
206 Y_ASSERT(offset + count <= size());

Callers 12

available_up_toMethod · 0.80
DecodeFromMethod · 0.80
available_up_toMethod · 0.80
EncodeMessageStartFunction · 0.80
DecodeFromMethod · 0.80
RemoveRangeMethod · 0.80
GetTypedBlockIteratorMethod · 0.80
GetBlockIteratorMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 3

TArrayRefClass · 0.70
dataFunction · 0.70
sizeFunction · 0.50

Tested by

no test coverage detected