검색결과 리스트
글
directX 예제 코드를 보다가
IFrameworkView^ Direct3DApplicationSource::CreateView()
이렇게 되어있는 코드가 있었다.
^(hat 이라 부른다)의미를 찾아보니 대충 스마트 포인터와 같은 의미인 것 같다.
공식 내용
Handle to Object Operator (^) (C++/CLI and C++/CX)
Handle to Object Operator (^) (C++/CLI and C++/CX) In this article --> The handle declarator (^, pronounced "hat"), modifies the type specifier to mean that the declared object should be automatically deleted when the system determines that the object is n
docs.microsoft.com
ref new, gcnew 관련 ( ref new, gcnew 으로 생성(?) 시 ^ 형으로 반환된다는것 같다.)
docs.microsoft.com/en-us/cpp/extensions/ref-new-gcnew-cpp-component-extensions?view=msvc-160
ref new, gcnew (C++/CLI and C++/CX)
ref new, gcnew (C++/CLI and C++/CX) In this article --> The ref new aggregate keyword allocates an instance of a type that is garbage collected when the object becomes inaccessible, and that returns a handle (^) to the allocated object. All Runtimes Memory
docs.microsoft.com
'기초' 카테고리의 다른 글
C++ :: 의미 (0) | 2020.07.20 |
---|---|
간단히 적어놓는 논리연산자 (0) | 2017.02.09 |
운영체제 스케줄링 기법 (0) | 2016.10.20 |
까먹지 말자 (0) | 2016.08.16 |
Hello world (0) | 2016.08.11 |
RECENT COMMENT