MCPcopy Create free account
hub / github.com/dmlc/xgboost / empty

Method empty

src/encoder/ordinal.h:67–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 Span<CatCharT const> values;
66
67 [[nodiscard]] ENC_DEVICE bool empty() const { return offsets.empty(); } // NOLINT
68 [[nodiscard]] ENC_DEVICE std::size_t size() const { // NOLINT
69 return this->empty() ? 0 : this->offsets.size() - 1;
70 }

Callers 3

CatStrArrayViewClass · 0.45
EmptyMethod · 0.45
RecodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected