|
BDE 4.39.x Production Release
|
#include <bslstl_utility.h>
This component-private class template is used to implement bsl::exchange in C++03. It performs an assignment in its destructor. See the implementation notes in the .cpp file for more information.
See bslstl_utility
Public Member Functions | |
| Utility_ExchangeAssignOnDestruction (t_TYPE &obj, t_OTHER_TYPE &newValue) | |
| ~Utility_ExchangeAssignOnDestruction () BSLS_KEYWORD_NOEXCEPT_SPECIFICATION(false) | |
Public Attributes | |
| t_TYPE & | d_obj |
| t_OTHER_TYPE & | d_newValue |
|
inline |
Create a Utility_ExchangeAssignOnDestruction object that, on destruction, will assign the specified newValue to the specified obj.
|
inline |
Destroy this object, performing the promised assignment.
| t_OTHER_TYPE& bslstl::Utility_ExchangeAssignOnDestruction< t_TYPE, t_OTHER_TYPE >::d_newValue |
| t_TYPE& bslstl::Utility_ExchangeAssignOnDestruction< t_TYPE, t_OTHER_TYPE >::d_obj |