Advertisement
tinyevil

Untitled

May 16th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Type properties:
  2.  
  3. CanDuplicate.
  4. Copies of a value can be made by simply memcpy'ing its contents.
  5. + i32
  6. - shared_ptr (must increment ref count)
  7.  
  8. CanDiscard
  9. A value can be discarded without invoking any special code.
  10. + i32
  11. - shared_ptr (must decrement ref count)
  12.  
  13. CanRelocate
  14. A value can be relocated onto a new address without invoking any special code.
  15. + shared_ptr
  16. - small_vector (may hold a pointer to itself, must update the pointer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement