Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. smart pointers

smart pointers

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shadrach_india
    wrote on last edited by
    #1

    Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy

    Z H 2 Replies Last reply
    0
    • S shadrach_india

      Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy

      Z Offline
      Z Offline
      Zac Howland
      wrote on last edited by
      #2

      They are classes that wrap a pointer and delete it when the object goes out of scope. Typically, you pass in the pointer in the constructor of a smart pointer, and the destructor will delete it. There are also some smart pointers that do reference counting and will only delete the pointer once the count has reached 0.

      If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

      1 Reply Last reply
      0
      • S shadrach_india

        Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See here[^]


        WhiteSky


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups