xgboost

Public Member Functions | List of all members
xgboost::StringView Struct Reference

`#include <json.h>`

Collaboration diagram for xgboost::StringView:

## Public Member Functions
| StringView ()=default
| StringView (CharT const *str, size_t size)
CharT const & | operator[] (size_t p) const
CharT const & | at (size_t p) const
size_t | size () const
std::string | substr (size_t beg, size_t n) const
char const * | c_str () const

## Constructor & Destructor Documentation

## ◆ StringView() [1/2]

xgboost::StringView::StringView | ( |  | ) |
| default

## ◆ StringView() [2/2]

xgboost::StringView::StringView | ( | CharT const * | str,
|  | size_t | size
| ) |  |
| inline

## Member Function Documentation

## ◆ at()

CharT const& xgboost::StringView::at | ( | size_t | p | ) | const
| inline

## ◆ c_str()

char const* xgboost::StringView::c_str | ( |  | ) | const
| inline

## ◆ operator[]()

CharT const& xgboost::StringView::operator[] | ( | size_t | p | ) | const
| inline

## ◆ size()

size_t xgboost::StringView::size | ( |  | ) | const
| inline

## ◆ substr()

std::string xgboost::StringView::substr | ( | size_t | beg,
|  | size_t | n
| ) |  | const
| inline

The documentation for this struct was generated from the following file:

- /workspace/include/xgboost/json.h