Documentation on operator[] behavior with missing keys #1855
Labels
documentation
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
Right now
operator[key]
is documented to create anull
key in the called upon json object shouldkey
not exist in that object, if the source object is NOTconst
. If the object isconst
,operator[]
returns the equivalent of*(map.cend())
.I think the documentation around this could be improved, as I would bet users are not fully aware of the behavioral differences depending on the
const
ness of the source object.I think the current behavior is fine, documentation could be improved to reflect it.
N/A
GCC 5 + RHEL7 as well as VC141/151 Win10 x64
develop
branch?Latest major version
The text was updated successfully, but these errors were encountered: