Print name in double‐quotes onto the stream supplied at construction.

Synopsis

Declared in <baljsn_simpleformatter.h>

void
addMemberName(std::string_view const& name);

Description

Print onto the stream supplied at construction the specified name in double‐quotes, preceded, if necessary, by a comma, and followed by a :. The behavior is undefined unless isNameNeeded() is true. After this operation, isNameNeeded() will be false, and an immediately subsequent attempt to add a value (or open an object or array) should not provide a name.

Parameters

Name

Description

name

member name to print

Created with MrDocs