Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Martin Nolte's avatar
    ee50361d
    add SmartPtr · ee50361d
    Martin Nolte authored
    SmartPtr< T > is similar to shared_ptr< T > in its intention. However, it
    demands methods addReference and removeReference on the object it points to.
    Actually, you could implement shared_ptr< T > through a
    SmartPtr< RefCountWrapper< T > > and a few cast operators.
    
    [[Imported from SVN: r6919]]
    ee50361d
    History
    add SmartPtr
    Martin Nolte authored
    SmartPtr< T > is similar to shared_ptr< T > in its intention. However, it
    demands methods addReference and removeReference on the object it points to.
    Actually, you could implement shared_ptr< T > through a
    SmartPtr< RefCountWrapper< T > > and a few cast operators.
    
    [[Imported from SVN: r6919]]