Does anyone find this code being very bad?
Can you rate this from 0 to 10. I am very interested what is your opinion on returning a reference that is nullptr.
const std::string &SoundHandler::getPlayingFromPlaylist(const std::string& playlistName)
{
//Check to see if the playlist exists
auto iter = playlists.find(playlistName);
if(iter == playlists.end())
return nullptr;
return playlists[playlistName].currentlyPlaying;
}