载入中...
搜索中...
未找到
eve::DiagnosticValue 概念引用

A value with a stable protocol name and machine-readable diagnostic code. 更多...

#include <DiagnosticValue.h>

概念定义

template<class T>
concept eve::DiagnosticValue = std::is_enum_v<T> && requires(T value) {
{ DiagnosticValueTraits<T>::name(value) } noexcept -> std::convertible_to<std::string_view>;
{ DiagnosticValueTraits<T>::code(value) } noexcept -> std::same_as<DiagnosticCode>;
}
double value
A value with a stable protocol name and machine-readable diagnostic code.
Customization point for values that cross diagnostic boundaries.

详细描述

A value with a stable protocol name and machine-readable diagnostic code.

注解
Specializations must be pure, thread-safe, and return static text.

在文件 DiagnosticValue.h 第 26 行定义.