«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
04-27 06:39
관리 메뉴

lancelot.com

std::unique_ptr 본문

프로그래밍

std::unique_ptr

lancelot50 2022. 7. 24. 11:56
  • std::unique_ptr
    • 소유권 독점의 스마트포인터
    • 복사는 할 수 없지만, 이동(move)은 가능
    • member type
      • pointer
      • element_type
      • deleter_type
    • member function
      • operator*, operator->
      • operator[], operator bool
      • swap, release, reset
      • get, get_delete
    • make_unique
    • make_unique_for_overwite