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

YouTube

The Detection Idiom - A Simpler Way to SFINAE

ACCU Conference via YouTube

Overview

Explore the Detection Idiom, a powerful method for distinguishing between types, in this 53-minute ACCU Conference talk by Marshall Clow. Learn how this lesser-known feature from the Library fundamentals Technical Specification simplifies SFINAE constraints and makes template meta-programming more accessible. Discover the origins, purpose, and implementation of the Detection Idiom through practical examples, including alligators and structs. Gain insights into the inner workings of the detector struct, instantiation, and the Detected type. Delve into variations like Detection exact and address common questions about this technique. A basic understanding of template meta-programming is recommended for this informative session that promises to streamline your type distinction processes.

Syllabus

Introduction
Outline
Metadetect
Where did it come from
What does it solve
Example
Alligators
structs
detector
struct detector
instantiate detector
DetectedT
Any other questions
How does it work
Variations
Detection exact
Detected

Taught by

ACCU Conference

Reviews

Start your review of The Detection Idiom - A Simpler 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.