CLRS
CLRS copied to clipboard
How to implement a real generic infinity in c++?
Found that infinity is often needed to implement algorithms from CLRS. Is there any way to implement a real generic infinity type that can be stored in a container?
seems that this is what you want:
INFINITY = std::numeric_limits