00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 #include "Format.ih"
00027
00028
00029
00030 #define prefix_ inline
00031
00032
00033 template <class T>
00034 prefix_ std::string
00035 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_signed<T> >::type *)
00036 {
00037 return detail::dumpintSigned(v, std::numeric_limits<T>::digits);
00038 }
00039
00040 template <class T>
00041 prefix_ std::string
00042 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_unsigned<T> >::type *)
00043 {
00044 return detail::dumpintUnsigned(v, std::numeric_limits<T>::digits);
00045 }
00046
00047 template <class T>
00048 prefix_ std::string
00049 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_signed<typename T::value_type> >::type *)
00050 {
00051 return detail::dumpintSigned(v.value(), std::numeric_limits<typename T::value_type>::digits);
00052 }
00053
00054 template <class T>
00055 prefix_ std::string
00056 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_unsigned<typename T::value_type> >::type *)
00057 {
00058 return detail::dumpintUnsigned(v.value(), std::numeric_limits<typename T::value_type>::digits);
00059 }
00060
00061
00062 #undef prefix_
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073