clibIsNull
설명
예제
nullptr
객체인지 테스트
다음 nullptr.hpp
헤더 파일에서 빌드된, null을 반환하는 함수를 포함하는 nullptr
라이브러리에 대한 인터페이스가 생성되어 있다고 가정하겠습니다.
class A { public: double val; }; // Function returning nullptr object A* returnObjectNullptr() { return nullptr; }
클래스 A
의 객체의 nullptr
을 표시합니다. 다음의 MATLAB® 코드는 일종의 예시로 사용되었으며, 인터페이스를 빌드하지 않으면 이대로 실행되지 않습니다.
ret = clib.nullptr.returnObjectNullptr
ret = null A
nullptr
을 테스트합니다.
if clibIsNull(ret) % Code to process nullptr end;
입력 인수
cppObj
— MATLAB에서 생성된 C++ 객체
핸들
MATLAB에서 생성된 C++ 객체로, 핸들로 지정됩니다.
버전 내역
R2019b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)