What header file can I use to get the size of ints and floats on various systems?
Printable View
What header file can I use to get the size of ints and floats on various systems?
You can #include <limits> and then use std::numeric_limits. Or if you mean size in bytes, then just use sizeof.
For the first, there's also boost.
boost::numeric_traits, that can be used in meta-programming since they're constant expressions.