* @brief Add a new member for this object. * @param key new member's name, must be string * @param value rvalue of the added value node * @param copyKey copy the key's string when creating the key node if copyKey * is true. * @return NodeType& Reference of the added member. * @note value will be moved. */
| 782 | * @note value will be moved. |
| 783 | */ |
| 784 | MemberIterator AddMember(StringView key, NodeType&& value, alloc_type& alloc, |
| 785 | bool copyKey = true) { |
| 786 | sonic_assert(this->IsObject()); |
| 787 | return downCast()->addMemberImpl(key, value, alloc, copyKey); |
| 788 | } |
| 789 | |
| 790 | /** |
| 791 | * @brief Reserve object capacity if NodeType support. Otherwise do nothing. |
nothing calls this directly
no test coverage detected