2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
15 \brief Format inline template implementation */
21 #define prefix_ inline
22 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_signed<T> >::type *)
28 return detail::dumpintSigned(v, std::numeric_limits<T>::digits);
33 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_unsigned<T> >::type *)
35 return detail::dumpintUnsigned(v, std::numeric_limits<T>::digits);
40 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_signed<typename T::value_type> >::type *)
42 return detail::dumpintSigned(v.value(), std::numeric_limits<typename T::value_type>::digits);
47 senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_unsigned<typename T::value_type> >::type *)
49 return detail::dumpintUnsigned(v.value(), std::numeric_limits<typename T::value_type>::digits);
52 //-/////////////////////////////////////////////////////////////////////////////////////////////////
60 // c-file-style: "senf"
61 // indent-tabs-mode: nil
62 // ispell-local-dictionary: "american"
63 // compile-command: "scons -u test"