Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. template <class T, class D>
  2. bool operator==(const std::unique_ptr<T, D>& a, const std::shared_ptr<T>& b) { return a.get() == b.get(); }
  3. template <class T, class D>
  4. bool operator==(const std::shared_ptr<T>& a, const std::unique_ptr<T, D>& b) { return a.get() == b.get(); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement