File: sharedplain.yo

package info (click to toggle)
c%2B%2B-annotations 11.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,952 kB
  • sloc: cpp: 20,008; makefile: 1,502; ansic: 165; sh: 121; perl: 90
file content (15 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tt(Shared_ptr)'s default constructor defines a hi(shared_ptr: default)
tt(shared_ptr) not pointing to a particular block of memory:
        verb(
    shared_ptr<type> identifier;
        )
    The hi(shared_ptr: 0-pointer) pointer controlled by the tt(shared_ptr)
object is initialized to tt(0) (zero). Although the tt(shared_ptr) object
itself is not the pointer, its value em(can) be compared to tt(0). Example:
        verb(
    shared_ptr<int> ip;

    if (!ip)
        cout << "0-pointer with a shared_ptr object\n";
        )
    Alternatively, the member ti(get) can be used (cf. section ref(SHAREDMEM)).