What is C++ Metafunction and How to Use It?
In C++ metaprogramming, a metafunction receives types and/or integral values, and after performing some logics returns types and/or integral values. Normal functions manipulate values, but the focus of a metafunction is types. Definition A metafunction is defined via struct. This is a simple metafunction which returns the input type and value: template<typename T, int i> // […]
Read More →