#include <cxxabi.h>
#include <iostream>
#include <limits>
Go to the source code of this file.
◆ print_limits()
Definition at line 26 of file print_limits.cpp.
29 print_limits_for<signed char>();
30 print_limits_for<short>();
31 print_limits_for<int>();
32 print_limits_for<long>();
33 print_limits_for<long long>();
34 print_limits_for<unsigned char>();
35 print_limits_for<unsigned short>();
36 print_limits_for<unsigned int>();
37 print_limits_for<unsigned long>();
38 print_limits_for<unsigned long long>();
◆ print_limits_for()
template<typename T >
void print_limits_for |
( |
| ) |
|
Definition at line 16 of file print_limits.cpp.
19 auto realname = std::unique_ptr<char, decltype( free )*>(
20 abi::__cxa_demangle(
typeid( T ).
name(),
nullptr,
nullptr, &status ), free );
22 cout <<
" '" << realname.get() <<
"': (" << +std::numeric_limits<T>::min() <<
", "
23 << +std::numeric_limits<T>::max() <<
"),\n";