xgboost
| 命名空间 | | 函数
result.h 文件参考
#include <cstdint>
#include <memory>
#include <string>
#include <system_error>
#include <utility>
result.h 的包含依赖图
此图显示了哪些文件直接或间接包含此文件

转到此文件的源代码。

struct  xgboost::collective::detail::ResultImpl
 
struct  xgboost::collective::Result
 一种比抛出 dmlc 异常更容易处理的错误类型。我们可以记录和传播系统错误代码。 更多...
 

命名空间

 xgboost
 多目标树的核心数据结构。
 
 xgboost::collective
 
 xgboost::collective::detail
 

#define __builtin_FILE()   nullptr
 
#define __builtin_LINE()   (-1)
 

函数

std::string xgboost::collective::detail::MakeMsg (std::string &&msg, char const *file, std::int32_t line)
 
Result xgboost::collective::operator+ (Result &&lhs, Result &&rhs)
 
auto xgboost::collective::Success () noexcept(true)
 返回成功。 更多...
 
auto xgboost::collective::Fail (std::string msg, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 返回失败。 更多...
 
auto xgboost::collective::Fail (std::string msg, std::error_code errc, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 返回带有 errno 的失败。 更多...
 
auto xgboost::collective::Fail (std::string msg, Result &&prev, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 返回带有先前错误的失败。 更多...
 
auto xgboost::collective::Fail (std::string msg, std::error_code errc, Result &&prev, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 返回带有先前错误和新 errno 的失败。 更多...
 
template<typename Fn >
std::enable_if_t< std::is_invocable_v< Fn >, Result > xgboost::collective::operator<< (Result &&r, Fn &&fn)
 
void xgboost::collective::SafeColl (Result const &rc)
 

宏定义文档

◆ __builtin_FILE

#define __builtin_FILE ( )    nullptr

◆ __builtin_LINE

#define __builtin_LINE ( )    (-1)