Example Of Template Functions
I make extensive use of C++ Template functions in my Min/of Array, full code here!
Min/of Array Forum Link
https://forums.unrealengine./showthread.php?20212-Two-new-Math-functions-for-you-from-me-in-4-3-Template-Min-Max-of-Array&p=98583&viewfull=1#post98583
Wiki on C++ Templates
https://wiki.unrealengine./Templates_in_C%2B%2B