00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00047 #ifndef FASTFORMAT_INCL_FASTFORMAT_INSERTERS_HPP_TO_X
00048 #define FASTFORMAT_INCL_FASTFORMAT_INSERTERS_HPP_TO_X
00049
00050
00051
00052
00053
00054 #ifndef FASTFORMAT_DOCUMENTATION_SKIP_SECTION
00055 # define FASTFORMAT_VER_FASTFORMAT_INSERTERS_HPP_TO_X_MAJOR 1
00056 # define FASTFORMAT_VER_FASTFORMAT_INSERTERS_HPP_TO_X_MINOR 0
00057 # define FASTFORMAT_VER_FASTFORMAT_INSERTERS_HPP_TO_X_REVISION 2
00058 # define FASTFORMAT_VER_FASTFORMAT_INSERTERS_HPP_TO_X_EDIT 2
00059 #endif
00060
00061
00062
00063
00064
00065 #include <fastformat/inserters/integer.hpp>
00066
00067
00068
00069
00070
00071 #if !defined(FASTFORMAT_NO_NAMESPACE)
00072 namespace fastformat
00073 {
00074 namespace inserters
00075 {
00076 #endif
00077
00078
00079
00080
00081
00092 template <typename I>
00093 inline integer_impl::ff_to_i_r_t_ to_x(
00094 I const& value
00095 )
00096 {
00097 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00098
00099 return
00100 #if !defined(FASTFORMAT_NO_NAMESPACE)
00101 ::fastformat::inserters::
00102 #endif
00103 integer_impl::integer_helper_hex_3(value, integer_impl::default_width_sentinel_(), integer_impl::default_precision_sentinel_(), false);
00104 }
00105
00116 template <typename I>
00117 inline integer_impl::ff_to_i_r_t_ to_X(
00118 I const& value
00119 )
00120 {
00121 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00122
00123 return
00124 #if !defined(FASTFORMAT_NO_NAMESPACE)
00125 ::fastformat::inserters::
00126 #endif
00127 integer_impl::integer_helper_hex_3(value, integer_impl::default_width_sentinel_(), integer_impl::default_precision_sentinel_(), true);
00128 }
00129
00143 template <typename I>
00144 inline integer_impl::ff_to_i_r_t_ to_x(
00145 I const& value
00146 , int minimumWidth
00147 )
00148 {
00149 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00150
00151 return
00152 #if !defined(FASTFORMAT_NO_NAMESPACE)
00153 ::fastformat::inserters::
00154 #endif
00155 integer_impl::integer_helper_hex_3(value, minimumWidth, integer_impl::default_precision_sentinel_(), false);
00156 }
00157
00171 template <typename I>
00172 inline integer_impl::ff_to_i_r_t_ to_X(
00173 I const& value
00174 , int minimumWidth
00175 )
00176 {
00177 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00178
00179 return
00180 #if !defined(FASTFORMAT_NO_NAMESPACE)
00181 ::fastformat::inserters::
00182 #endif
00183 integer_impl::integer_helper_hex_3(value, minimumWidth, integer_impl::default_precision_sentinel_(), true);
00184 }
00185
00202 template <typename I>
00203 inline integer_impl::ff_to_i_r_t_ to_x(
00204 I const& value
00205 , int minimumWidth
00206 , int precision
00207 )
00208 {
00209 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00210
00211 return
00212 #if !defined(FASTFORMAT_NO_NAMESPACE)
00213 ::fastformat::inserters::
00214 #endif
00215 integer_impl::integer_helper_hex_3(value, minimumWidth, precision, false);
00216 }
00217
00234 template <typename I>
00235 inline integer_impl::ff_to_i_r_t_ to_X(
00236 I const& value
00237 , int minimumWidth
00238 , int precision
00239 )
00240 {
00241 STLSOFT_STATIC_ASSERT(stlsoft::is_integral_type<I>::value);
00242
00243 return
00244 #if !defined(FASTFORMAT_NO_NAMESPACE)
00245 ::fastformat::inserters::
00246 #endif
00247 integer_impl::integer_helper_hex_3(value, minimumWidth, precision, true);
00248 }
00249
00250
00251
00252
00253
00254 #if !defined(FASTFORMAT_NO_NAMESPACE)
00255 }
00256 using ::fastformat::inserters::to_x;
00257 using ::fastformat::inserters::to_X;
00258 }
00259 #endif
00260
00261
00262
00263
00264
00265 #ifdef STLSOFT_PPF_pragma_once_SUPPORT
00266 # pragma once
00267 #endif
00268
00269
00270
00271 #endif
00272
00273