Suppose that you create an interface to library
nullptr
, built from this nullptr.hpp
header file,
containing a function that returns NULL.
class A {
public:
double val;
};
// Function returning nullptr object
A* returnObjectNullptr() {
return nullptr;
}
Display nullptr
for an object of class A
. The
MATLAB® code is used as an illustration and does not execute as is, unless you
build the interface.
Test for nullptr
.