[링크 : https://andreasfertig.com/blog/2022/03/a-destructor-default-and-the-move-operations/]
c++11 에 추가된 키워드 인 듯. 꽤 오래되긴 했네..
다만 생성자나 소멸자에 사용할 경우 객체 생성보다는 기본 객체를 포인터로 연결하는 얕은 복사를 사용한다는 의미일 듯.
반대는 delete 키워드로 기본 지정을 막을 수 있는 듯.
'Programming > C++ STL' 카테고리의 다른 글
std::string:npos (0) | 2025.02.05 |
---|---|
std::istringstream (0) | 2025.01.31 |
RAII (Resource Acquisition Is Initialization) (0) | 2024.11.28 |
cpp lambda (0) | 2024.11.22 |
cpp static_cast<type> (0) | 2023.02.09 |