摘要:
C++-std::this_thread::get_id()-获取线程id std::this_thread::get_id() 头文件:<thread> 函数:std::this_thread::get_id() 用例:std::thread::id thread_id = std::this_t 阅读全文
摘要:
C++-#pargma once https://baike.baidu.com/item/%23pragma%20once/9468158?fr=aladdin #pragma once是一个比较常用的C/C++预处理指令。 只在头文件的最开始加入这条预处理指令,就能够保证头文件只被编译一次。 基 阅读全文
摘要:
C++-改变终端(cout/printf)输出不同颜色的字体-Linux https://blog.csdn.net/qq_41972382/article/details/90311102 不同颜色的输出主要依据格式ESC[*m,ESC的八进制为\033,*可以是多个属性的组合,用,隔开。 pri 阅读全文
摘要:
C++-标准异常<exception> std::exception 定义于头文件 <exception> class exception; https://www.apiref.com/cpp-zh/cpp/error/exception.html 标准库头文件 <stdexcept> https 阅读全文
摘要:
Tool-CMake-list https://www.visgraf.impa.br/seminar/slides/rodlima_cmake_presentation.pdf Useful to manage long list of elements Elements can be manip 阅读全文
摘要:
Tool-CMake-Own Finder(-I -L -l)-compiling What is a finder When compiling a piece of software which links to thirdparty libraries, we need to know: W 阅读全文
摘要:
Tool-CMake-MESSAGE Show status information, warnings or errors MESSAGE( [SEND_ERROR | STATUS | FATAL_ERROR] "message to display" ... ) 阅读全文
摘要:
Tool-CMake-OPTION https://clubjuggler.livejournal.com/138364.html includes a component As an example, consider a project that optionally includes a co 阅读全文
摘要:
Tool-CMake-How CMake simplifies the build process by Bruno Abinader https://gitlab.kitware.com/cmake/community/-/wikis/home https://brunoabinader.gith 阅读全文
摘要:
Tool-CMake-A Simple CMake Example https://cmake.org/examples/ There are three directories involved. The top level directory has two subdirectories cal 阅读全文