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

Method c_str

include/boost/json/string.hpp:752–756  ·  view source on GitHub ↗

Return the underlying character array directly. Returns a pointer to the underlying array serving as storage. The value returned is such that the range `[c_str(), c_str() + size())` is always a valid range, even if the container is empty. @note The value returned from this function is never equal to `nullptr`. @par Complexity Constant.

Source from the content-addressed store, hash-verified

750 Constant.
751 */
752 char const*
753 c_str() const noexcept
754 {
755 return impl_.data();
756 }
757
758 /** Convert to a @ref string_view referring to the string.
759

Callers 15

fcMethod · 0.80
tag_invokeFunction · 0.80
syncMethod · 0.80
syncMethod · 0.80
testConstructionMethod · 0.80
testAssignmentMethod · 0.80
testAssignMethod · 0.80
testConversionMethod · 0.80
testElementAccessMethod · 0.80
testAppendMethod · 0.80
testPlusEqualsMethod · 0.80
testCompareMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by 2

syncMethod · 0.64
syncMethod · 0.64