core: advertise element type in shared_ptr<>

Other smart pointers also do that. Will help foreign_ptr<>.
This commit is contained in:
Tomasz Grabiec
2014-11-10 10:54:21 +01:00
committed by Avi Kivity
parent a77ecbeeef
commit 0b4ee2ff60

View File

@@ -43,6 +43,8 @@ private:
return shared_ptr(new data(std::forward<A>(a)...));
}
public:
using element_type = T;
shared_ptr() = default;
shared_ptr(const shared_ptr& x) : _p(x._p) {
if (_p) {