| 1818 | |
| 1819 | template <typename UIntPtr> |
| 1820 | void write_pointer(UIntPtr value, const format_specs* specs) { |
| 1821 | int num_digits = count_digits<4>(value); |
| 1822 | auto pw = pointer_writer<UIntPtr>{value, num_digits}; |
| 1823 | if (!specs) return pw(reserve(to_unsigned(num_digits) + 2)); |
| 1824 | format_specs specs_copy = *specs; |
| 1825 | if (specs_copy.align == align::none) specs_copy.align = align::right; |
| 1826 | write_padded(specs_copy, pw); |
| 1827 | } |
| 1828 | }; |
| 1829 | |
| 1830 | using writer = basic_writer<buffer_range<char>>; |
no test coverage detected