RCPtr ?= shared_ptr

This is a discussion on RCPtr ?= shared_ptr within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, I am to modify some third-party library code, and I've found the class "RCPtr". This seems to me ...

  1. #1
    Registered User
    Join Date
    May 2008
    Location
    Paris
    Posts
    248

    RCPtr ?= shared_ptr

    Hi everyone,

    I am to modify some third-party library code, and I've found the class "RCPtr".

    This seems to me a Reference Count Smart Pointer, said to be in Boost. However, I haven't found this in the Boost library.
    However, the shared_ptr is a reference count smart pointer as well?

    Has anyone seen this template before? Is it deprecated, or in another library which I don't know? Or is it just a general name? (i have found many rcPtr templates on the net).

    Thanks for your answer!

    Mark

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,588
    shared_ptr is not the only reference counted smart pointer around. If the documentation says nothing about it, search the headers included until you find such a class defined.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21