| 1427 | |
| 1428 | template <typename Char, typename OutputIt> |
| 1429 | OutputIt write_bytes(OutputIt out, string_view bytes, |
| 1430 | const basic_format_specs<Char>& specs) { |
| 1431 | using iterator = remove_reference_t<decltype(reserve(out, 0))>; |
| 1432 | return write_padded(out, specs, bytes.size(), [bytes](iterator it) { |
| 1433 | const char* data = bytes.data(); |
| 1434 | return copy_str<Char>(data, data + bytes.size(), it); |
| 1435 | }); |
| 1436 | } |
| 1437 | |
| 1438 | // Data for write_int that doesn't depend on output iterator type. It is used to |
| 1439 | // avoid template code bloat. |