Copy a substring to another string. Copies `std::min(count, size() - pos)` characters starting at index `pos` to the string pointed to by `dest`. @attention This function doesn't put the null terminator after the copied characters. @return The number of characters copied. @param count The number of characters to copy. @param dest The str
| 1635 | @throw boost::system::system_error `pos >` @ref max_size(). |
| 1636 | */ |
| 1637 | std::size_t |
| 1638 | copy( |
| 1639 | char* dest, |
| 1640 | std::size_t count, |
| 1641 | std::size_t pos = 0) const |
| 1642 | { |
| 1643 | return subview().copy(dest, count, pos); |
| 1644 | } |
| 1645 | |
| 1646 | //------------------------------------------------------ |
| 1647 |