¡@

Home 

c++ Programming Glossary: adquire

The simplest and neatest c++11 ScopeGuard

http://stackoverflow.com/questions/10270328/the-simplest-and-neatest-c11-scopeguard

int someOtherVec myVec.push_back 5 first constructor adquire happens elsewhere const auto a RAII makeScopeGuard myVec.pop_back.. important issue with the makeScopeGuard that takes the adquire lambda in the constructor. If the adquire lambda throws then.. that takes the adquire lambda in the constructor. If the adquire lambda throws then the release lambda is never called because..