摘要:
dab-adapter-cpp的类图: classDiagram class dispatcher { <<class>> } class dabBridge { jsonElement dispatch() } class dabMQTTInterface { -dabBridge bridge 阅读全文
摘要:
目录概述DAB::dabclientdef宏def宏的展开nativeDispatch类类的模板参数构造函数参数最后两个模板参数的推导特化发生的时机std::string_viewstd::initializer_liststd::is_same_v 概述 dab-adapter-cpp 是一个 C 阅读全文
摘要:
CRTP(Curiously Recurring Template Pattern,奇异递归模板模式)是 C++ 中的一种设计模式。 基本概念 CRTP 是指一个类(通常是基类)以其派生类作为模板参数的模式。其基本形式如下: template <typename Derived> class Bas 阅读全文