Can I insert a value to ValueMap?

I’m using Cocos2D-x v3.0 beta.
I want to insert a value to a ValueMap like the code below.
@
ValueMap valueMap;
Value val = Value(1);
valueMap.insert(“key”, val);
@
If I wrote this, then I get the error message
“No matching member function for call to ‘insert’”.

I know I can insert an object to Map.
But I cannot insert to ValueMap?

I understood that ValueMap is not Map.
I can insert Value to ValueMap with
valueMap["key"] = val;

1 Like

This was oddly useful cause what I was searching for was not well documented.