Calling Functions A Tutorial
Calling Functions A Tutorial Klaus Iglberger, CppCon 2020 klaus.iglberger@gmx.de2 Klaus Iglberger C++ Trainer since 2016 Author of the C++ math library (Co-)Organizer of the Munich Two-Phase Lookup Template Argument Deduction SFINAE Overload Resolution (Viable) Candidate Functions Ranking Ambiguous Function Calls Access Labels Function Template Specializations Virtual Two-Phase Lookup Template Argument Deduction SFINAE Overload Resolution (Viable) Candidate Functions Ranking Ambiguous Function Calls Access Labels Function Template Specializations Virtual0 码力 | 111 页 | 5.11 MB | 5 月前3Back To Basics Functions
for many years -- please provide suggestions, analogies, and other useful ways to think about functions now or in the future!Please do not redistribute slides without prior permission. 4Your Tour Guide for the talk ● Located here: https://github.com/MikeShah/Talks/tree/main/2023/cppcon/functions 6Abstract Functions are one of the first things programmers learn, granting you the ultimate power to 'reuse' overview of functions from the start to the end, on the various powers that are given to us from the ground up. Consider this talk your one stop for learning all of the great things about functions! We'll0 码力 | 123 页 | 7.26 MB | 5 月前3From Functions to Coroutines
From Functions to Coroutines 40 Years Evolution Rainer Grimm Training, Coaching, and Technology Consulting www.ModernesCpp.netEvolution of Callable templateT invoke(Func sequence of functions can be changed ▪ Automatically parallelizable ▪ Results can be cachedPure Functions Working with a pure function is based on discipline Use common functions, meta-functions, constexpr constexpr, or consteval functions ▪ Function int powFunc(int m, int n){ if (n == 0) return 1; return m * powFunc(m, n - 1); } ▪ Meta-Function template struct PowMeta { static int const value 0 码力 | 29 页 | 510.47 KB | 5 月前3Connecting User And Library Code
@@@ All of library code is in LibSpace, user code without frame is in UserSpace@@@ As opposed to library sharing entities with other libraries+ @@@ Deducing this removes the need for CRTP2 Slides1. https://godbolt (something which can be done generally) @@@ All of library code is in LibSpace, user code without frame is in UserSpace1. @@@ Terms: 1. Overload: multiple functions with the same name, for different num of abstract interface at all.”5 Slides@@@ (*) Concepts are only limiting by behavior / qualities@@@ All of library code is in LibSpace, user code without frame is in UserSpace 1. Basic: https://godbolt.org/z/nej3977z8@@@0 码力 | 58 页 | 18.82 MB | 5 月前3Optimizing Away Virtual Functions May Be Pointless
virt_duration = end-start;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 eritance-vs-other- ways-performanceDoes it even matter?Conclusions ● The notion that “virtual functions are slower” is flat out wrong. ○ Which is not to say they are faster ○ Some of the suggested0 码力 | 20 页 | 1.19 MB | 5 月前3Linear Algebra with The Eigen Cpp Library
• A short history – linear algebra and C++ (1998 – Present) • The Eigen C++ Template Library for Linear Algebra • Linear Algebra Interface in C++26 • Basics • Using with Eigen Outline Daniel Hanson Hanson CppCon 2024 2• This presentation is on solving problems using • The Eigen linear algebra library • stdBLAS in C++26 • Not affiliated with Eigen but have used it in financial programming and teaching essentially were: • Write your own Matrix class and operations • Convince your boss to buy a commercial library A Little History Daniel Hanson CppCon 2024 5FAQ’s • Boost uBLAS (BLAS: “Basic Linear Algebra0 码力 | 35 页 | 1.10 MB | 5 月前3Combining Co-Routines and Functions into a Job System
Helmut Hlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 1 / 39Helmut Hlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 2 / 39 About Myself • Professor Processing) Technical Committee 14 Entertainment ComputingHelmut Hlavacs – Combining Co-Routines and Functions into a Job System - CppCon 2021 3 / 39 Creating Game Engines with C++ • Vienna Game Job System List Library • Vienna Physics Engine + • Vienna Game AI Engine + • GUI • = Vienna Vulkan Game Engine 2.0 https://github.com/hlavacs 20Helmut Hlavacs – Combining Co-Routines and Functions into a0 码力 | 39 页 | 1.23 MB | 5 月前3Improving Our Safety With a Quantities and Units Library
units library The future is here 2CppCon 2024: Improving our safety with a quantities and units library The future is here 3CppCon 2024: Improving our safety with a quantities and units library Me 10 Improving our safety with a quantities and units library Tactical Flight Computer 5CppCon 2024: Improving our safety with a quantities and units library Tactical Flight Computer 6• A major concern in language rules – providing safer high-level abstractions in the library CppCon 2024: Improving our safety with a quantities and units library C++ safety 7• Many C++ engineers are expected to write life-critical0 码力 | 207 页 | 6.93 MB | 5 月前3A Physical Units Library for the Next C++
Mateusz Pusz September 15, 2020 A Physical Units Library For the Next C++CppCon 2020 | A Physical Units Library For the Next C++ Motivation, Existing Practice, Challenges... 21 Quick Start 2 Strong Experience 5 Framework Basics 6 Environment, compatibility, next steps CppCon 2020 | A Physical Units Library For the Next C++ Agenda 31 Quick Start 2 Strong Interfaces 3 As fast as (or even faster) than next steps CppCon 2020 | A Physical Units Library For the Next C++ Agenda In Q&A please refer to the slide number. 3CppCon 2020 | A Physical Units Library For the Next C++ QUICK START 4// simple numeric0 码力 | 172 页 | 6.17 MB | 5 月前3CMake Configuration for Asio Basic Library and Tests
cppcon_add_library(basic LIBRARIES Asio::asio) add_subdirectory(tests)0 码力 | 1 页 | 71.00 B | 5 月前3
共 331 条
- 1
- 2
- 3
- 4
- 5
- 6
- 34