| 199 | } |
| 200 | |
| 201 | DEF_CONV_NUM(bool, 64) |
| 202 | |
| 203 | DEF_CONV_CHR(char) |
| 204 | DEF_CONV_CHR(signed char) |
| 205 | DEF_CONV_CHR(unsigned char) |
| 206 | |
| 207 | DEF_CONV_NUM(signed short, 64) |
| 208 | DEF_CONV_NUM(signed int, 64) |
| 209 | DEF_CONV_NUM(signed long int, 64) |
| 210 | DEF_CONV_NUM(signed long long int, 64) |
| 211 | |
| 212 | DEF_CONV_NUM(unsigned short, 64) |
| 213 | DEF_CONV_NUM(unsigned int, 64) |
| 214 | DEF_CONV_NUM(unsigned long int, 64) |
| 215 | DEF_CONV_NUM(unsigned long long int, 64) |
| 216 | |
| 217 | DEF_CONV_NUM(float, 512) |
| 218 | DEF_CONV_NUM(double, 512) |
| 219 | DEF_CONV_NUM(long double, 512) |
| 220 | |
| 221 | #if !defined(_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION) || (_YNDX_LIBCXX_ENABLE_VECTOR_BOOL_COMPRESSION == 1) |
| 222 | // TODO: acknowledge std::bitset::reference for both libc++ and libstdc++ |
| 223 | template <> |
| 224 | void Out<typename std::vector<bool>::reference>(IOutputStream& o, const std::vector<bool>::reference& bit) { |
| 225 | return Out<bool>(o, static_cast<bool>(bit)); |
| 226 | } |
| 227 | #endif |
| 228 | |
| 229 | #ifndef TSTRING_IS_STD_STRING |
| 230 | template <> |
| 231 | void Out<TBasicCharRef<TString>>(IOutputStream& o, const TBasicCharRef<TString>& c) { |
| 232 | o << static_cast<char>(c); |
| 233 | } |
| 234 | |
| 235 | template <> |
| 236 | void Out<TBasicCharRef<TUtf16String>>(IOutputStream& o, const TBasicCharRef<TUtf16String>& c) { |
| 237 | o << static_cast<wchar16>(c); |
| 238 | } |
| 239 | |
| 240 | template <> |
| 241 | void Out<TBasicCharRef<TUtf32String>>(IOutputStream& o, const TBasicCharRef<TUtf32String>& c) { |
| 242 | o << static_cast<wchar32>(c); |
| 243 | } |
| 244 | #endif |
| 245 | |
| 246 | template <> |
| 247 | void Out<const void*>(IOutputStream& o, const void* t) { |
| 248 | o << Hex(size_t(t)); |
| 249 | } |
| 250 | |
| 251 | template <> |
| 252 | void Out<void*>(IOutputStream& o, void* t) { |
| 253 | Out<const void*>(o, t); |
| 254 | } |
| 255 | |
| 256 | using TNullPtr = decltype(nullptr); |
| 257 | |
| 258 | template <> |