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

Method is_string

include/boost/json/value.hpp:1223–1227  ·  view source on GitHub ↗

Check if this is a @ref string. Returns `true` if the value's @ref kind() is `kind::string`. @returns `this->kind() == kind::string`. @par Complexity Constant. @par Exception Safety No-throw guarantee. */

Source from the content-addressed store, hash-verified

1221 No-throw guarantee.
1222 */
1223 bool
1224 is_string() const noexcept
1225 {
1226 return kind() == json::kind::string;
1227 }
1228
1229 /** Check if this is a `std::int64_t`.
1230

Callers 15

testSpecialMethod · 0.80
testConversionMethod · 0.80
testAssignmentMethod · 0.80
testExchangeMethod · 0.80
testObserversMethod · 0.80
usingValuesFunction · 0.80
testModifiersMethod · 0.80
runMethod · 0.80
checkMethod · 0.80
testAccessMethod · 0.80
testIteratorsMethod · 0.80
testModifiersMethod · 0.80

Calls 1

kindEnum · 0.85

Tested by

no test coverage detected