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

接收编译格式输出的写入端 / Output endpoint accepted by compiled format writers More...

#include <print_contract.hpp>

Concept definition

template<typename Sink>
concept LibXR::Print::OutputSink = requires(Sink& output, std::string_view text) {
{ output.Write(text) } -> std::convertible_to<ErrorCode>;
}
接收编译格式输出的写入端 / Output endpoint accepted by compiled format writers

Detailed Description

接收编译格式输出的写入端 / Output endpoint accepted by compiled format writers

Template Parameters
Sink候选输出端类型 / Candidate sink type
Note
必须提供 Write(std::string_view),并返回可转换为 ErrorCode 的结果 / Must provide Write(std::string_view) and return a value convertible to ErrorCode

Definition at line 24 of file print_contract.hpp.