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

Method StringView

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

Source from the content-addressed store, hash-verified

29
30 public:
31 constexpr StringView() = default;
32 constexpr StringView(value_type const* str, std::size_t size) : str_{str}, size_{size} {}
33 StringView(std::string const& str) : str_{str.c_str()}, size_{str.size()} {} // NOLINT
34 constexpr StringView(value_type const* str) // NOLINT

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected