Introduction to C++ Template Metaprogramming

Introduction to C++ Template Metaprogramming

NDC Conferences via YouTube Direct link

std::enable_if

15 of 19

15 of 19

std::enable_if

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Introduction to C++ Template Metaprogramming

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Motivation: Checking Type Constraints
  3. 3 Motivation: Algorithm Selection
  4. 4 Motivation: Compile-Time Computation Some fairly complex computations can be performed ahead-of-time
  5. 5 Reminder: Class Template Specialization
  6. 6 A large collection of metafunctions that check properties of types
  7. 7 Type Traits and static assert
  8. 8 Non-Constraining Use of Traits
  9. 9 Member Detection with void_t
  10. 10 Generalized Version (Expression SFINAE)
  11. 11 Specializing a Template Based on Traits - There are multiple approaches, each with its merits Hand-written template specialisation
  12. 12 Hand-Written Template Specialization
  13. 13 Tag Dispatch Overload functions on a type that depends on a type tra les
  14. 14 distance_helper
  15. 15 std::enable_if
  16. 16 Recursive Templates
  17. 17 Some Simple Uses
  18. 18 constexpr Over Types
  19. 19 Compile-Time Safe printf

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.