CLRS icon indicating copy to clipboard operation
CLRS copied to clipboard

How to implement a real generic infinity in c++?

Open Mooophy opened this issue 10 years ago • 1 comments

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?

Mooophy avatar May 20 '14 23:05 Mooophy

seems that this is what you want: INFINITY = std::numeric_limits::max() Thanks for your work in implementing the CLRS book.

Kelvinson avatar Feb 19 '17 08:02 Kelvinson