filmov
tv
Jason Turner: IIFE in C++ for Performance and Safety
Показать описание
IIFE (Immediately-Invoked Function Expression) is a common tool used in JavaScript. The idea is to both define an anonymous function and call it in the same expression. The point is to produce a local scope for variables so they do not pollute the global scope.
This same technique can be deployed in C++ to lead to cleaner, safer, more performant code when building up objects which require multiple steps to initialize.
---
*--*
---
This same technique can be deployed in C++ to lead to cleaner, safer, more performant code when building up objects which require multiple steps to initialize.
---
*--*
---
Jason Turner: IIFE in C++ for Performance and Safety
C++ Weekly - Ep 70 - C++ IIFE in quick-bench.com
CppCon 2016: Jason Turner “Practical Performance Practices'
C++ Weekly - Ep 65 - C++11's std::fmin
C++ Weekly - Ep 64 - C++11's std::min (and my version)
C++ Weekly - Ep 26 Language Features Removed in C++17
C++ Weekly - Ep 52 - C++ To C Compilation
Jason Turner: Why and How To Add Scripting
The Worst Best Practices - Jason Turner - [CppNow 2021]
C++ Weekly - Ep 66 - Variadic fmin for C++11
C++ Weekly - Ep 67 - C++17's std::gcd and std::lcm
C++ Weekly - Ep 1 ChaiScript_Parser Initialization Refactor
C++ Weekly - Ep 68 - std::iota
Pacific++ 2017: Jason Turner 'Rethinking Exceptions'
C++ Weekly - Ep 42 - Clang's Heap Elision
C++ Weekly - Ep 168 - Discovering Warnings You Should Be Using
C++ Weekly - Ep 80 - Intro to AppVeyor
C++ Weekly - Ep 74 - std::regex optimize
C++ Weekly - Ep 47 - My Visual C++ Pet Peeve
C++ Weekly - Ep 69 - C++17's Searchers
C++ Weekly - Ep 37 - Stateful Lambdas
C++ Weekly - Ep 152 - Lambdas: The Key To Understanding C++
C++ Weekly - Ep 72 - Hidden C++17 - Part 2
C++ Weekly - Ep 61 - Storage Duration with Lambdas
Комментарии