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

Method size

include/xgboost/string_view.h:43–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 return str_[p];
42 }
43 [[nodiscard]] constexpr std::size_t size() const { return size_; } // NOLINT
44 [[nodiscard]] constexpr bool empty() const { return size() == 0; } // NOLINT
45 [[nodiscard]] StringView substr(std::size_t beg, std::size_t n) const { // NOLINT
46 CHECK_LE(beg, size_);

Callers 4

StringViewClass · 0.95
StringViewMethod · 0.45
operator==Function · 0.45
operator<Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected