How do I know the map is loaded with C++

I switch the map and want to creat a actor,but can’t creat it,I think the map is not loaded,How do I know the map is loaded with C++?