Back To Basics Functions## +23 ## Back To Basics Functions ## MIKE SHAH ## 20 23 October 01 - 06 20 23 October 01 - 06 ## Back To Basics Functions 14:00 - 15:00 MDT Mon, Oct. 2 2023 60 minutes Introductory Audience MIKE SHAH ## Back To Basics Functions If you’ve been programming C++ for many years -- please provide suggestions, analogies, and other useful ways to think about functions now or in the future! 14:00 23/cppcon/functions Talks / 2023 / cppcon / functions / ☐ MikeShah Create readme.md Name readme.md ## The abstract that you read and enticed you to join me is here! ## Abstract Functions are one of0 码力 | 123 页 | 7.26 MB | 1 年前3
From Functions to Coroutinesnt max() # From Functions to Coroutines 40 Years Evolution std::cout << "myVec::"; for (auto i; myVec); std::cout std::cout << " std::vectormyVec2(20); std::iota(myVec2 Easy to test and to refactor The call sequence of functions can be changed ■ Automatically parallelizable ■ Results can be cached ## Pure Functions  Working with a pure function is based on discipline → Use common functions, meta-functions, constexpr, or consteval functions ■ Function int powFunc(int m, int n) { if (n == 0) return 1; 0 码力 | 29 页 | 510.47 KB | 1 年前3
Calling Functions A Tutorial## Calling Functions ## A Tutorial Klaus Iglberger, CppCon 2020 klaus.iglberger@gmx.de ## C++ Trainer since 2016 Author of the bl $ \text{ze} $ C++ math library (Co-)Organizer of the Munich C++ user Overload Resolution (Viable) Candidate Functions Ranking Ambiguous Function Calls Access Labels Function Template Specializations Virtual Dispatch Deleting Functions ## Content Overview Name Lookup Overload Resolution (Viable) Candidate Functions Ranking Ambiguous Function Calls Access Labels Function Template Specializations Virtual Dispatch Deleting Functions ## Disclaimer This talk does ...0 码力 | 111 页 | 5.11 MB | 1 年前3
Back to Basics: Move Semanticsuser-declared special member function • No copy constructor • No assignment operator • No destructor C++ josuttis | eckstein 28 IT communication Move Semantics and Special Member Functions class Cust [77: ???? ????] josuttis | eckstein C++ ©2021 by josuttis.com 29 ## Move Semantics and Special Member Functions class Cust { private: std::string first; std::string last; int val; public: Joe Fox] C++ josuttis | eckstein IT communication ## Move Semantics and Special Member Functions class Cust { private: std::string first; std::string last; int val; public:0 码力 | 23 页 | 1020.10 KB | 1 年前3
Python in Azure Functions 基于Python的Azure Functions实践 赵健Python in Azure Functions ## 基于Python的Azure Functions实践 赵健 - Microsoft 目录 CONTENTS >> >> Python 在 Azure 中无处不在 >> 粘合剂 – Azure Functions >> Azure Functions 实践  Functions  AKS ## 运行 Python Batch Notebook  Functions  认知服务  ## DO NOT ENTER reviewer's notes: There are interesting technical details and surprising conclusions that virtual functions can be actually faster. Since CPU architectures are mentioned, I'd expect to see deep assembly vtable lookup. Does it even matter? ### WEKA DriveU.auto ## Conclusions - The notion that “virtual functions are slower” is flat out wrong. ○ Which is not to say they are faster o Some of the suggested alternatives0 码力 | 20 页 | 1.19 MB | 1 年前3
Combining Co-Routines and Functions into a Job System## +21 ## Combining Co-Routines and Functions into a Job System ## HELMUT HLAVACS 20 21 October 24-29 ## About Myself • Professor for Computer Science • University of Vienna, Austria: founded 1365 submit_for_render(); // submit command buffers Helmut Hlavacs - Combining Co-Routines and Functions into a Job System - CppCon 2021 4 / 39 ## Modern Multicore CPUs • N>1 [Image](/uploads/documents/b/8/1/a/b81afd1caaee62e04fa1a2d13bd68657/p14_2.jpg) ## • Normal Functions /class member functions • Lambdas, std::function• std::bind • void (*function)() • struct Function{}: 0 码力 | 39 页 | 1.23 MB | 1 年前3
Back to Basics: Object-Oriented Programmingof trademark and brand protection legislation and can therefore be used by anyone, even without special identification. Planning, typesetting and cover design: Andreas Fertig Cover art and illustrations: The body of the constructor is available for further operations. ■ Classes can consist of member functions ☐ and data fields ☐ with different access rights ☐ - For everyone: public - Only for children: 4 : /*this->*/ mData{i} C Constructor initializer list 5 { D Constructor body 6 } 8 Member functions void Set(int i) { /*this->*/ mData = i; } Note the const 12 auto Get() const {0 码力 | 20 页 | 1.04 MB | 1 年前3
DEDUCING this PATTERNSspecifying or deducing the value category of the expression that a member-function is invoked on. In other words, a way to tell from within a member function whether the expression it’s invoked on is an lvalue the first parameter only) to make the "implicit first argument" explicit on non-static member functions. Practically everything else is unchanged: ## WHAT CHANGED, AND WHAT DIDN'T We added this the first parameter only) to make the "implicit first argument" explicit on non-static member functions. Practically everything else is unchanged: • template deduction rules ## WHAT CHANGED, AND0 码力 | 126 页 | 5.15 MB | 1 年前3
Julia 1.6.1 Documentationbehavior 14 Division errors 15 4.2 Floating-Point Numbers 15 Floating-point zero 16 Special floating-point values 17 Machine epsilon 18 Rounding modes 19 Background and References Syntax Conflicts 22 4.5 Literal zero and one 23 5 Mathematical Operations and Elementary Functions 25 5.1 Arithmetic Operators 25 5.2 Boolean Operators 26 5.3 Bitwise Operators 26 5.4 Updating Elementary Functions 31 5.7 Operator Precedence and Associativity 31 5.8 Numerical Conversions 32 Rounding functions 33 Division functions 33 Sign and absolute value functions 33 Powers,0 码力 | 1397 页 | 4.59 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
函数参数命名规则模板测试CallableFunctionCoroutineLambda ExpressionFunction Overloading函数模板重载解析隐式参数成员函数SFINAEMove Semanticsrvalue referencesperfect forwardingspecial member functionsstd::moveAzure FunctionsPythonAKSACIVM虚函数基准测试性能优化编译器优化CPU架构Vienna Game Job Systemcoroutinesfunctionsthread pooljob allocationclassconstructormember functionaccess specifiervirtual functionDeducing thistemplate deductionvalue categorylvaluervalueDocumentationREPLModulesFunctionsMethods













