Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Sepple

Name: Anonymous 2012-08-14 8:33

Declaring a member variable of a class instance

if (is owned)
    if (is ownership shared)
        if (is it bound to scope)
            plain declaration
        else
            unique_ptr
    else
        shared_ptr
else
    if (it outlives this object)
        reference
    else
        weak_ptr

Did I get it right?

Name: Anonymous 2012-08-14 20:57

learn to use real pointers faggot

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List