MCPcopy Create free account
hub / github.com/Tencent/rapidjson / HasMember

Function HasMember

include/rapidjson/document.h:1094–1094  ·  view source on GitHub ↗

Check whether a member exists in the object. ! \param name Member name to be searched. \pre IsObject() == true \return Whether a member with that name exists. \note It is better to use FindMember() directly if you need the obtain the value as well. \note Linear time complexity. */

Source from the content-addressed store, hash-verified

1092 \note Linear time complexity.
1093 */
1094 bool HasMember(const Ch* name) const { return FindMember(name) != MemberEnd(); }
1095
1096#if RAPIDJSON_HAS_STDSTRING
1097 //! Check whether a member exists in the object with string object.

Callers

nothing calls this directly

Calls 2

FindMemberFunction · 0.85
MemberEndFunction · 0.85

Tested by

no test coverage detected