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

Method resize

include/boost/json/string.hpp:1660–1664  ·  view source on GitHub ↗

Change the size of the string. Resizes the string to contain `count` characters. If `count > `@ref size(), **(2)** appends copies of `ch` and **(1)** appends ``'\0'``. Otherwise, `size()` is reduced to `count`. @param count The size to resize the string to. @throw boost::system::system_error `count > `@ref max_size(). @{ */

Source from the content-addressed store, hash-verified

1658 @{
1659 */
1660 void
1661 resize(std::size_t count)
1662 {
1663 resize(count, 0);
1664 }
1665
1666 /** Overload
1667

Callers 15

parse_cbor_arrayFunction · 0.80
read_fileFunction · 0.80
pretty_printFunction · 0.80
operator[]Method · 0.80
path.cppFile · 0.80
tag_invokeFunction · 0.80
set1Function · 0.80
testStringMethod · 0.80
testBoostPmrMethod · 0.80
tag_invokeFunction · 0.80
test_vectorsMethod · 0.80
testCapacityMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_vectorsMethod · 0.64