chsvlib
chsv helper source code

◆ AutoResource() [28/28]

AutoResource ( MyType &&  rrRight)

Constructs an AutoResource object by a given copy which is to be moved (semantically) to the instance being created.

Parameters
rrRightis an rvalue reference to an instance of the AutoResource to be moved to the instance being currently constructed.
Remarks
The object acquires the content managed by rrRight, moving into the object its stored handle (of which it takes ownership), its stored closer and checker. After the construction the rrRight object owns nothing.