object: rename T as SelfT for owned_ptr
This commit is contained in:
parent
e87ad28599
commit
e284512d0d
15
object.hpp
15
object.hpp
@ -161,10 +161,10 @@ namespace cruft::vk {
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <typename T>
|
||||
template <typename SelfT>
|
||||
class owned_ptr {
|
||||
public:
|
||||
owned_ptr (T &&_self, owner_t<T> &_owner):
|
||||
owned_ptr (SelfT &&_self, owner_t<SelfT> &_owner):
|
||||
m_self (std::move (_self)),
|
||||
m_owner (_owner)
|
||||
{ ; }
|
||||
@ -184,16 +184,19 @@ namespace cruft::vk {
|
||||
// justify the work.
|
||||
owned_ptr& operator= (owned_ptr &&rhs) = delete;
|
||||
|
||||
T& operator* ()&
|
||||
const SelfT& get (void) const& { return m_self; }
|
||||
SelfT& get (void)& { return m_self; }
|
||||
|
||||
SelfT& operator* ()&
|
||||
{ return m_self; }
|
||||
|
||||
T*
|
||||
SelfT*
|
||||
operator-> ()&
|
||||
{ return &m_self; }
|
||||
|
||||
private:
|
||||
T m_self;
|
||||
owner_t<T> &m_owner;
|
||||
SelfT m_self;
|
||||
owner_t<SelfT> &m_owner;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user