Pipeline Architectures in C++: Overloaded Pipe Operator | and Its Monadic Operationsoverview of what the poster reports on. Title: Pipeline architectures in C++: overloaded pipe operator | std::expected and its monadic operations Brief overview: Functional programming in C++ is the overloaded pipe operator. In this poster I show how to implement a custom pipeline framework that employs std::expected, available since C++23. An overloaded custom pipe operator | will be presented my book about C++ [1][3]. One of the topics was to describe the behavior of the overloaded pipe operator | in std::ranges. I came across Ankur's Satle lecture [4] and decided to expand on this topic –0 码力 | 3 页 | 422.24 KB | 6 月前3
Kotlin Language Documentation 1.9.20Practice Next step Null safety Nullable types Check for null values Use safe calls Use Elvis operator Practice What's next? Kotlin Multiplatform Kotlin Multiplatform use cases Code sharing between next? Type checks and casts is and !is operators Smart casts "Unsafe" cast operator "Safe" (nullable) cast operator Conditions and loops If expression When expression 364 365 365 367 367 Generic functions Generic constraints Definitely non-nullable types Type erasure Underscore operator for type arguments Nested and inner classes Inner classes Anonymous inner classes Enum classes0 码力 | 1299 页 | 32.44 MB | 1 年前3
Kotlin 1.9.10 官方文档 中文版
互操作性 与 Swift/Objective-C 互操作性 Kotlin/Native 开发 Apple framework——教程 CocoaPods 集成 CocoaPods 概述 添加对 Pod 库的依赖 使用 Kotlin Gradle 项目作为 CocoaPods 依赖项 CocoaPods Gradle 插件 DSL 参考 Kotlin/Native 库 平台库 Kotlin/Native 注解可以在更多平台上使用 有了按名称获取正则表达式捕获组的公共函数 引入了 HexFormat 类来格式化与解析十六进制 稳定版用于前闭后开区间的 ..< 操作符 The new ..< operator for open-ended ranges that was introduced in Kotlin 1.7.20 and became Stable in 1.8.0. In 1.9.0 API for working with open- ended ranges is also Stable. Our research shows that the new ..< operator makes it easier to understand when an open-ended range is declared. If you use the until infix0 码力 | 3753 页 | 29.69 MB | 1 年前3
Hidden Overhead of a Function APIcbz x0, .LBB1_2 b operator delete(void*) .LBB1_2: ret mov rax, QWORD PTR [rdi] mov QWORD PTR [rdi], 0 test rax, rax je .L3 mov esi, 4 mov rdi, rax jmp operator delete(void*) .L3: ret QWORD PTR [rcx], 0 test rax, rax je SHORT $LN34@output_ptr mov edx, 4 mov rcx, rax jmp operator delete(void*) $LN34@output_ptr: ret 0 O U T P U T 25Returning std::unique_ptr #include#16] mov x29, sp add x8, x29, #24 bl value_ptr() ldr x0, [x29, #24] ldr w19, [x0] bl operator delete(void*) mov w0, w19 ldr x19, [sp, #16] ldp x29, x30, [sp], #32 ret push rbx sub 0 码力 | 158 页 | 2.46 MB | 6 月前3
Kotlin 官方文档中文版 v1.9互操作性 与 Swift/Objective-C 互操作性 Kotlin/Native 开发 Apple framework——教程 CocoaPods 集成 CocoaPods 概述 添加对 Pod 库的依赖 使用 Kotlin Gradle 项目作为 CocoaPods 依赖项 CocoaPods Gradle 插件 DSL 参考 Kotlin/Native 库 平台库 Kotlin/Native 注解可以在更多平台上使用 有了按名称获取正则表达式捕获组的公共函数 引入了 HexFormat 类来格式化与解析十六进制 稳定版用于前闭后开区间的 ..< 操作符 The new ..< operator for open-ended ranges that was introduced in Kotlin 1.7.20 and became Stable in 1.8.0. In 1.9.0 library API for working with open-ended ranges is also Stable. Our research shows that the new ..< operator makes it easier to understand when an open-ended range is declared. If you use the until infix0 码力 | 2049 页 | 45.06 MB | 1 年前3
A (Short) Tour of C++ Modulespoint of declaration (POD), introduces entity 'i' int j = i; // POD, introduces entity 'j' // point of look-up (POL), names visible entity 'i' int k = l; // POD, introduces entity declared // (relative invisibility) int l; // point of declaration (POD), introduces entity 'l' int m = n; // POD, introduces entity 'm' // POL, names invisible entity 'n' invisibility) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // translation unit 2 int n; // POD, introduces entity 'n' 1 2 3 STARTING SIMPLE global scope Lookup of entities at global scope0 码力 | 62 页 | 4.20 MB | 6 月前3
MuPDF 1.22.0 DocumentationReturns {}. 3.4.33 PDF Processor A PDF processor provides callbacks that get called for each PDF operator handled by PDFPage process() & PDFAnnotation process() methods. The callbacks whose names start representation of ‘POD’ structs and their C++ wrapper classes. For example for fz_rect we provide these functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& diagnostic each time it calls a MuPDF function (apart from keep/drop functions). If 2, we also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special0 码力 | 175 页 | 698.87 KB | 8 月前3
Class Layoutposition on the base class list, not the order in which they’re allocated in memory. A defaulted operator <=> compares members in their declared order. 24 Copyright © 2020 by Stephen C. Dewhurst and Daniel lexical order x, y, and z even if z is physically placed at offset 0. class Flatland { public: auto operator <=>(const Flatland &) const = default; int x; int y; private: int z; }; 25 Copyright © 2020 by Go Wrong? Just be careful about making layout assumptions. class Flatland { public: auto operator <=>(const Flatland &rhs) const { return memcmp(this, &rhs, sizeof(Flatland)); } int0 码力 | 51 页 | 461.37 KB | 6 月前3
MuPDF 1.23.0 Documentationto return. 6.36 PDF Processor A PDF processor provides callbacks that get called for each PDF operator handled by PDFPage process() & PDFAnnotation process() methods. The callbacks whose names start representation of ‘POD’ structs and their C++ wrapper classes. For example for fz_rect we provide these functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& functions). If 2, low-level wrappers output a diagnostic each time they are called. We also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.24.0 Documentationto return. 6.36 PDF Processor A PDF processor provides callbacks that get called for each PDF operator handled by PDFPage process() & PDFAnnotation process() methods. The callbacks whose names start generating a text representation of ‘POD’ (plain old data) structs and their C++ wrapper classes. For example for fz_rect we provide these functions: std::ostream& operator<< (std::ostream& out, const fz_rect& fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const fz_rect& s); std::string Rect::to_string() const;0 码力 | 249 页 | 830.15 KB | 8 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













