Template Metaprogramming - enable_if- part 2 of n | Modern Cpp Series Ep. 222
Mike Shah
0:00 / 0:00
Template Metaprogramming - enable_if- part 2 of n | Modern Cpp Series Ep. 222
1 706 просмотров · 1 г. назад
Mike Shah
42,1 тыс. подписчиков
1 706 просмотров · 1 г. назад
►Full C++ Series Playlist: • The C++ Programming Language
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Discussion Forum: https://forum.mshah.io/
►Lesson Description: In this lesson I show you how to use enable_if. enable_if (and enable_if_t) are tools used in C++ 11 prior to concepts alongside the idea of SFINAE. The main idea is to force a substitution failure using enable_if and the type_traits that we used before to select the correct template specialization. As always, feel free to bring up any questions and discuss what you've learned!
►YouTube Channel: / mikeshah
►Please like and subscribe to help the channel!
►Join our free community: https://courses.mshah.io/communities/...