shared_ptr.h revision 168c8d6c9ebf206dd762e5909178774e4e6c68e2
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * Simplified shared pointer.
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * Copyright (C) 2013 Oracle Corporation
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * available from http://www.virtualbox.org. This file is free software;
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * you can redistribute it and/or modify it under the terms of the GNU
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * General Public License (GPL) as published by the Free Software
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
168c8d6c9ebf206dd762e5909178774e4e6c68e2vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
66a09bb37f8bc24ce62920cd480f9b4d13347aadvboxsync imp(T *pTrg = NULL, int cnt = 1): ptr(pTrg),refcnt(cnt){}
66a09bb37f8bc24ce62920cd480f9b4d13347aadvboxsync if (p->refcnt == 0)
0d49a2fbc9857ad8dd29542de7fb37202f1a283fvboxsync if (p->refcnt == 0)
66a09bb37f8bc24ce62920cd480f9b4d13347aadvboxsync const T*operator->() const