Reference counting

Introduction. What is reference couting? Reference counting is a technique that is used when you need to maintain several references to a same place, or more concretely to the same object without having to have several copies of this object in memory. The derived problem of making reference to an object from several places appears…