Re:Algorithms
by lorenzhs on Wednesday February 15, 2017 @02:29PM
(#13654678)
Yes, generics in Java or templates in C++ is how any algorithms library would handle this. Any type passed into such a function needs to possess the required operators and functions or it will fail to compile/run.
[ Parent
| on HN ]
There are no comments on this comment yet.