Pipeline Architectures in C++: Overloaded Pipe Operator | and Its Monadic Operations
overview 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++ 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 of 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 topic0 码力 | 3 页 | 422.24 KB | 5 月前3Expressive Compile-time Parsers
Evolution API Design Metaprogramming TricksAbout the talk • Expressiveness in C++ • Parsers • Operator overloading • Domain specific languages • Open source compile-time libraries • API • Design • = {1,2,3,4}; vectorv(arr, arr + sizeof(arr) / sizeof(arr[0])); vector v = {1,2,3,4};Operator Overloading Use operators to call custom functions for specific types. std::filesystem::path p auto result = func(cats);Example – Compile Time Parsers template constexpr auto operator""_FROM() { constexpr auto parser = create_parser(); return parser(str); } /*...*/ std::vector 0 码力 | 134 页 | 1.73 MB | 5 月前3Custom Views for the Rest of Us
current_outer); [[nodiscard]] reference operator*() const; inner_iterator& operator++(); [[nodiscard]] inner_iterator operator++(int) [[nodiscard]] bool operator==(inner_iterator const& rhs) const; current_outer); [[nodiscard]] reference operator*() const; inner_iterator& operator++(); [[nodiscard]] inner_iterator operator++(int) [[nodiscard]] bool operator==(inner_iterator const& rhs) const; [[nodiscard]] reference operator*() const; 16 inner_iterator& operator++(); 17 [[nodiscard]] inner_iterator operator++(int) 18 [[nodiscard]] bool operator==(inner_iterator const& rhs)0 码力 | 187 页 | 13.25 MB | 5 月前3Python 标准库参考指南 2.7.18
254 9.8 functools —高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 267 9.9 operator —标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 10 文件和目录访问 279 methods described in the 字 符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section methods de- scribed in the 字符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
254 9.8 functools —高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 267 9.9 operator —标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 10 文件和目录访问 279 methods described in the 字 符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section methods de- scribed in the 字符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
254 9.8 functools —高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 267 9.9 operator —标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 10 文件和目录访问 279 methods described in the 字 符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section methods de- scribed in the 字符串的方法 section. To output formatted strings use template strings or the % operator described in the String Formatting Operations section. In addition see the String Services section0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 3.6.15
309 10.2 functools —高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 323 10.3 operator —标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 11 文件和目录访问 337 会生成虚数(实部为零的复数),你可以将其与整数或浮点数相加来得到具有实部和虚部的复数。 Python fully supports mixed arithmetic: when a binary arithmetic operator has operands of different numeric types, the operand with the “narrower”type is widened to that token_specification = [ ('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number ('ASSIGN', r':='), # Assignment operator ('END', r';'), # Statement terminator ('ID', r'[A-Za-z]+'), # Identifiers ('OP', r'[+\-*/]')0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.6.15
309 10.2 functools —高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 323 10.3 operator —标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 11 文件和目录访问 337 会生成虚数(实部为零的复数),你可以将其与整数或浮点数相加来得到具有实部和虚部的复数。 Python fully supports mixed arithmetic: when a binary arithmetic operator has operands of different numeric types, the operand with the “narrower”type is widened to that token_specification = [ ('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number ('ASSIGN', r':='), # Assignment operator ('END', r';'), # Statement terminator ('ID', r'[A-Za-z]+'), # Identifiers ('OP', r'[+\-*/]')0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.7.13
301 10.2 functools --- 高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . 314 10.3 operator --- 标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320 11 文件和目录访问 327 同 比较这些数字的精确值一样。 2 构造函数int()、float() 和complex() 可以用来构造特定类型的数字。 所有数字类型(复数除外)都支持下列运算(有关运算优先级,请参阅:operator-summary): 运算 结果: 注释 完整文档 x + y x 和 y 的和 x - y x 和 y 的差 x * y x 和 y 的乘积 x / y x 和 y 的商 x // token_specification = [ ('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number ('ASSIGN', r':='), # Assignment operator ('END', r';'), # Statement terminator ('ID', r'[A-Za-z]+'), # Identifiers ('OP', r'[+\-*/]')0 码力 | 1846 页 | 9.09 MB | 9 月前3Python 标准库参考指南 3.7.13
10.2 functools --- 高阶函数和可调用对象上的操作 . . . . . . . . . . . . . . . . . . . . . . . . . . 329 10.3 operator --- 标准运算符替代函数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 11 文件和目录访问 同比较这 些数字的精确值一样。 2 构造函数int()、float() 和complex() 可以用来构造特定类型的数字。 所有数字类型(复数除外)都支持下列运算(有关运算优先级,请参阅:operator-summary): 运算 结果: 注释 完整文档 x + y x 和 y 的和 x - y x 和 y 的差 x * y x 和 y 的乘积 x / y x 和 y 的商 x // token_specification = [ ('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number ('ASSIGN', r':='), # Assignment operator ('END', r';'), # Statement terminator ('ID', r'[A-Za-z]+'), # Identifiers ('OP', r'[+\-*/]')0 码力 | 1961 页 | 9.14 MB | 9 月前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100