I have a C++ object of type ObjectArray
ObjectArray
typedef map> ObjectArray;
What is the syn
If you want to add an existing pointer to insert into the map, you will have to use std::move.
For example:
std::unique_ptr classPtr(new Class1); myMap.insert(std::make_pair(0,std::move(classPtr)));