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

Method empty

include/boost/json/string.hpp:987–991  ·  view source on GitHub ↗

Check if the string has no characters. Returns `true` if there are no characters in the string, i.e. @ref size() returns 0. @par Complexity Constant. @par Exception Safety No-throw guarantee. */

Source from the content-addressed store, hash-verified

985 No-throw guarantee.
986 */
987 bool
988 empty() const noexcept
989 {
990 return impl_.size() == 0;
991 }
992
993 /** Return the number of characters in the string.
994

Callers 15

pretty_printFunction · 0.45
testModifiersMethod · 0.45
usingInitListsFunction · 0.45
set1Function · 0.45
grind_oneMethod · 0.45
grindMethod · 0.45
testStackMethod · 0.45
runMethod · 0.45
checkMethod · 0.45
testCtorsMethod · 0.45
testModifiersMethod · 0.45
testConstructionMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected