Lines Matching defs:obj
88 static ptr_shared<T> share_unsafe(T const *obj) {
89 return ptr_shared<T>(obj);
93 explicit ptr_shared(T const *obj) : _obj(obj) {}
100 inline ptr_shared<T> share(T const *obj) {
101 return share_unsafe(obj ? new T(*obj) : NULL);
108 inline ptr_shared<T> reshare(T const *obj) {
109 return ptr_shared<T>::share_unsafe(obj);
113 inline ptr_shared<T> share_unsafe(T const *obj) {
114 return ptr_shared<T>::share_unsafe(obj);