
C++标准库 _string
关于 #include <string> //C++ #include <string.h> //C using namespaces std; 声明 string str; 调用string...
关于 #include <string> //C++ #include <string.h> //C using namespaces std; 声明 string str; 调用string...
导出SOUI对象到Lua 为了在SOUI中使用lua,需要使用lua内核实现一个SOUI::IScriptModuler接口。 namespace SOUI { class SWindow; /*! \brief A...
线程池 创建线程池方法一 调用async_factory_impl::create创建线程池 但是这个函数实际作用是用于创建一个记录器 由于需要一个线程池对象参数,所以在创建记录器之前做了个检查,如果还不存在线程池,...
语言特性 指定初始化 按名称初始化结构体成员,提高可读性 struct Config { int width; int height; std::string title; }; Config cfg { .widt...