9 inst->instance_pointers.insert(
this );
13 inst->instance_pointers.erase(
this );
38 if( this->inst == other.inst )
44 this->inst = other.inst;
54 if( this->inst == instance )
60 this->inst = instance;
70 return this->inst == other.inst;
75 return this->inst != other.inst;
80 return this->inst < other.inst;
85 return this->inst > other.inst;
90 return this->inst <= other.inst;
95 return this->inst >= other.inst;
113 instance_ptr::operator bool()
const
120 this->inst =
nullptr;
127 if( this->_change_callback )
128 this->_change_callback();
135 if( this->_change_callback )
136 this->_change_callback();
142 this->_change_callback = cb;
148 if( this->_change_callback )
149 this->_change_callback();