Mar 30, 2019

[C++17] compile time checking type is an instance of a type template

Book Functional Programming in C++ (by Ivan Čukić) by far is the best functional programming book for C++

Other informative document are:
https://github.com/fons/functional-cpp/tree/master/docs

Ivan had a post about how to use variadic template argument to detect a type is an instance of type template.

Reference:
https://cukic.co/2019/03/15/template-meta-functions-for-detecting-template-instantiation/

code in action:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.