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

Method capacity

include/boost/json/string.hpp:1036–1040  ·  view source on GitHub ↗

Return the number of characters that can be held in currently allocated memory. Returns the number of characters that the container has currently allocated space for. This number is never smaller than the value returned by @ref size(). @par Complexity Constant. @par Exception Safety No-throw guarantee. */

Source from the content-addressed store, hash-verified

1034 No-throw guarantee.
1035 */
1036 std::size_t
1037 capacity() const noexcept
1038 {
1039 return impl_.capacity();
1040 }
1041
1042 /** Increase the capacity to at least a certain amount.
1043

Callers 15

testContainerHelpersMethod · 0.45
value_testMethod · 0.45
testConversionMethod · 0.45
grind_oneMethod · 0.45
object_testMethod · 0.45
checkMethod · 0.45
testCtorsMethod · 0.45
testModifiersMethod · 0.45
testHashPolicyMethod · 0.45
testCollisionsMethod · 0.45
testStrongGuranteeMethod · 0.45
test_vectorsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_vectorsMethod · 0.36