Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. 이동 생성자 코드를 사용했을 때 (// 이동 생성자 라고 각주 처리된 부분 포함)
- [아래는 출력 결과]
- (1) ============
- move called
- constructor ended
- destroyed
- (2) ============
- move called
- constructor ended
- destroyed
- (3) ============
- move called
- constructor ended
- destroyed
- (4) ============
- (5) ============
- copy called
- constructor ended
- code fin
- destroyed
- destroyed
- destroyed
- destroyed
- destroyed
- destroyed
- 2. 이동 생성자 코드를 사용하지 않았을 때 (// 이동 생성자 라고 각주 처리된 부분 제외)
- [아래는 출력 결과]
- (1) ============
- copy called
- constructor ended
- destroyed
- (2) ============
- copy called
- constructor ended
- destroyed
- (3) ============
- copy called
- constructor ended
- destroyed
- (4) ============
- (5) ============
- copy called
- constructor ended
- code fin
- destroyed
- destroyed
- destroyed
- destroyed
- destroyed
- destroyed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement