Guest User

Untitled

a guest
May 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <memory>
  2.  
  3. int main() {
  4. // bounded array
  5. std::shared_ptr<int[5]> ptr1 { new int[5]{} };
  6.  
  7. // un-bounded array
  8. std::shared_ptr<int[]> ptr2 { new int[5]{} };
  9. }
Add Comment
Please, Sign In to add comment