Advertisement
Guest User

Untitled

a guest
Apr 30th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. template <class T>
  2. struct remove_shared_ptr
  3. {
  4. using type = T;
  5. };
  6.  
  7. template <class T>
  8. struct remove_shared_ptr<std::shared_ptr<T>>
  9. {
  10. using type = T;
  11. };
  12.  
  13. template <class T>
  14. using remove_shared_ptr_t = typename remove_shared_ptr<T>::type;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement