Back to Basics: Functions in C++
Talkat CppCon 2023 · on Monday, 2023-10-02· at 14:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard·
summary
Walks from simple signatures to machine code: uses compiler explorer (godbolt) and objdump to show call instructions, labels and that functions have addresses; demonstrates taking addresses, C-style pointers, std::function, arrays of operations, and higher‑order functions; covers lambdas/functors, capturing state, function composition, namespaces, headers/pragma once, modules, and grouping in classes with virtual/static/member/operator overloading; explains pass‑by‑value vs reference, span for ptr+len, and constexpr/consteval compile-time evaluation; slides and code live on the GitHub link.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:23Welcome
- 1:58Goals
- 2:32Math Functions
- 4:16My Origin Story
- 8:29Functions
- 10:06Anatomy and Components
- 14:46Function Calls
- 19:39Recursion
- 21:52Modular Code Blocks
- 22:15Function Declaration
- 29:54Grouping Functions
- 38:39Composable Functions
- 41:58Const Expert
- 51:56More Functions
- 54:14Functions State
- 56:47Higher Order Functions
related talks
01h 00mBack to Basics: Class Layout
01h 01mCalling Functions: A Tutorial
01h 02mBack to Basics: The Structure of a Program
01h 02mBack to Basics - Name Lookup and Overload Resolution in C++
01h 02mBack to Basics: Templates in C++
01h 02mAn Overview of C++11/14, Part I
01h 05mBack To Basics: Overload Resolution
01h 09mFunctional Programming in C++
