ScopedSwap Class

(Utils::ScopedSwap)

Public Functions

ScopedSwap(T &var, T newValue)
~ScopedSwap()

Member Function Documentation

ScopedSwap::ScopedSwap(T &var, T newValue)

Default constructs an instance of ScopedSwap.

ScopedSwap::~ScopedSwap()

Destroys the instance of ScopedSwap.