#include <lcast_precision.hpp>
Public Types | |
typedef BOOST_DEDUCED_TYPENAME boost::mpl::if_ < boost::is_abstract< T > , std::numeric_limits < lcast_abstract_stub > , std::numeric_limits< T > >::type | limits |
Public Member Functions | |
BOOST_STATIC_ASSERT (!is_specialized_dec||precision_dec<=streamsize_max+0UL) | |
BOOST_STATIC_ASSERT (!is_specialized_bin||(limits::digits+0UL< ULONG_MAX/30103UL &&precision_bin > limits::digits10+0UL &&precision_bin<=streamsize_max+0UL)) | |
BOOST_STATIC_CONSTANT (bool, use_default_precision=!limits::is_specialized||limits::is_exact) | |
BOOST_STATIC_CONSTANT (bool, is_specialized_bin=!use_default_precision &&limits::radix==2 &&limits::digits > 0) | |
BOOST_STATIC_CONSTANT (bool, is_specialized_dec=!use_default_precision &&limits::radix==10 &&limits::digits10 > 0) | |
BOOST_STATIC_CONSTANT (std::streamsize, streamsize_max=boost::integer_traits< std::streamsize >::const_max) | |
BOOST_STATIC_CONSTANT (unsigned int, precision_dec=limits::digits10+1U) | |
BOOST_STATIC_CONSTANT (unsigned long, precision_bin=2UL+limits::digits *30103UL/100000UL) | |
BOOST_STATIC_CONSTANT (std::streamsize, value=is_specialized_bin?precision_bin:is_specialized_dec?precision_dec:6) |
Definition at line 45 of file lcast_precision.hpp.
typedef BOOST_DEDUCED_TYPENAME boost::mpl::if_< boost::is_abstract<T> , std::numeric_limits<lcast_abstract_stub> , std::numeric_limits<T> >::type boost::detail::lcast_precision< T >::limits |
Definition at line 54 of file lcast_precision.hpp.
boost::detail::lcast_precision< T >::BOOST_STATIC_ASSERT | ( | !is_specialized_dec||precision_dec<=streamsize_max+ | 0UL | ) |
boost::detail::lcast_precision< T >::BOOST_STATIC_ASSERT | ( | !is_specialized_bin|| | limits::digits+0UL< ULONG_MAX/30103UL &&precision_bin > limits::digits10+0UL &&precision_bin<=streamsize_max+0UL | ) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | bool | , |
use_default_precision | = !limits::is_specialized||limits::is_exact |
||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | bool | , |
is_specialized_bin | = !use_default_precision &&limits::radix==2 &&limits::digits , |
||
0 | |||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | bool | , |
is_specialized_dec | = !use_default_precision &&limits::radix==10 &&limits::digits10 , |
||
0 | |||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | std::streamsize | , |
streamsize_max | = boost::integer_traits< std::streamsize >::const_max |
||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | unsigned | int, |
precision_dec | = limits::digits10+1U |
||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | unsigned | long, |
precision_bin | = 2UL+limits::digits *30103UL/100000UL |
||
) |
boost::detail::lcast_precision< T >::BOOST_STATIC_CONSTANT | ( | std::streamsize | , |
value | = is_specialized_bin?precision_bin:is_specialized_dec?precision_dec:6 |
||
) |