Library Additions
C++11 adds several specialized libraries. An extensible random number library, supported by the random
header file, provides much more extensive and sophisticated random number facilities than rand()
. For example, it offers a choice of random-number generators and a choice of distributions, including uniform (like rand()
), binomial, normal, and several others.
The chrono
header file supports ways to deal with time duration.
The tuple
header file supports the tuple
template. A tuple
object is a generalization of a pair
object. Whereas a pair
object can hold two values whose types need not be the same, a tuple
can hold an arbitrary number of items of different types.
The compile-time rational arithmetic library, supported by the ...
Get C++ Primer Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.