Release resource from this container. After this call, the resource will @b not cleaned up when this container is destructed. @note Although direct assignment is forbidden due to the non-obvious semantics, a pointer can be moved (@b not copied) from one instance to another using this method. @code new_ptr = old_ptr.release(); @endcode This is by design.
| 331 | @return The no longer contained resource. |
| 332 | */ |
| 333 | value_type |
| 334 | release() |
| 335 | { |
| 336 | value_type zret = _r; |
| 337 | _r = Traits::initValue(); |
| 338 | return zret; |
| 339 | } |
| 340 | |
| 341 | /** Place a new resource @a rt in the container. |
| 342 | Any resource currently contained is destroyed. |
no outgoing calls
no test coverage detected