| 131 | } |
| 132 | |
| 133 | long use_count( |
| 134 | ) const |
| 135 | { |
| 136 | if (expired()) |
| 137 | return 0; |
| 138 | else |
| 139 | return weak_node->shared_node->ref_count; |
| 140 | } |
| 141 | |
| 142 | bool expired() const { return weak_node == 0 || weak_node->shared_node == 0; } |
| 143 |
no outgoing calls