Macro BOOST_SCOPE_DEFER
BOOST_SCOPE_DEFER — The macro creates a uniquely named defer guard.
Synopsis
Description
The macro should be followed by a function object that should be called on leaving the current scope. Usage example:
BOOST_SCOPE_DEFER []
{
std::cout << "Hello world!" << std::endl;
};
![[Note]](../../../../../../doc/src/images/note.png) |
Note |
Using this macro requires C++17. |