MCPcopy Create free account
hub / github.com/boostorg/json / copy

Method copy

include/boost/json/string.hpp:1637–1644  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

testCopyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected