libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Print::SourceFrontend Concept Reference

可由共享后端读取源码信息的格式前端 / Format frontend exposing source metadata to the shared backend More...

#include <print_contract.hpp>

Concept definition

template<typename Frontend>
concept LibXR::Print::SourceFrontend = requires {
typename Frontend::ErrorType;
{ Frontend::SourceData() } -> std::convertible_to<const char*>;
{ Frontend::SourceSize() } -> std::convertible_to<size_t>;
}
可由共享后端读取源码信息的格式前端 / Format frontend exposing source metadata to the shared backend

Detailed Description

可由共享后端读取源码信息的格式前端 / Format frontend exposing source metadata to the shared backend

Template Parameters
Frontend候选前端类型 / Candidate frontend type
Note
至少需要暴露 ErrorTypeSourceData()SourceSize() / Must expose at least ErrorType, SourceData(), and SourceSize()

Definition at line 37 of file print_contract.hpp.