Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Detection Idiom - A Better Way to SFINAE

CppNow via YouTube

Overview

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

Reviews

Start your review of The Detection Idiom - A Better Way to SFINAE

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.