YoVDO

The Detection Idiom - A Better Way to SFINAE

Offered By: CppNow via YouTube

Tags

C++Now Courses C++ Courses Template Metaprogramming Courses SFINAE Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the powerful "Detection idiom" hidden in the Library fundamentals Technical Specification in this comprehensive conference talk from C++Now 2017. Delve into this underappreciated yet potent method for distinguishing between types, simplifying the often tedious and confusing process of writing SFINAE constraints. Follow along as Marshall Clow, an experienced programmer and significant contributor to Boost and the C++ standard committee, introduces the detection idiom, explains its inner workings, and demonstrates its practical applications through various examples. Learn about the Detection Team, Walter Brown's contributions, and how this idiom solves common programming challenges. Gain insights into concepts such as Nonesuch, Detected, Void_t, Default, Detected_Exact, Detected_Member, and the Detection Free idiom. Discover how to apply the detection idiom to operators and enhance your C++ programming skills.

Syllabus

Introduction
The Detection Team
The Detection idiom
Walter Browns
What problem does it solve
Example
Nonesuch
Detected
How does it work
What does it do
VoidT
Default
Detected Exact
Detected Member
Detection Free idiom
Detection for operators
Questions


Taught by

CppNow

Related Courses

Your Favorite Undefined Behavior in C++
CppNow via YouTube
Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube
Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube
Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube
Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube