adding element_type to ref<T>

parent 78d729aa
...@@ -61,6 +61,8 @@ class ref_tag {}; ...@@ -61,6 +61,8 @@ class ref_tag {};
*/ */
template <typename T> class ref { template <typename T> class ref {
public: public:
using element_type = T;
/// Create a nullptr reference /// Create a nullptr reference
ref() : m_ptr(nullptr) { print_default_created(this); track_default_created((ref_tag*) this); } ref() : m_ptr(nullptr) { print_default_created(this); track_default_created((ref_tag*) this); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment