¡@

Home 

c++ Programming Glossary: someresource

Returning a “NULL reference” in C++?

http://stackoverflow.com/questions/10371094/returning-a-null-reference-in-c

some frameworks having an isNull method for this purpose SomeResource SomeClass getSomething std string name if content_.find name.. if content_.find name content_.end return content_ name SomeResource output Create a null resource return output Then the caller.. output Then the caller would check the resource that way SomeResource r obj.getSomething something if r.isNull OK else NOT OK However..