jeudi 1 février 2018

how check if a bool exists in c++

I created a bool in memory by using

 bool *SomeBool = new bool;

how do I then check if it exists or not in memory, because (to my knowledge)

if(!SomeBool) //Do stuff

does not work properly if the bool gets set to false by default. so how would i check to see if it exists at all?

Aucun commentaire:

Enregistrer un commentaire