OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
scope_exit.hpp File Reference

A utility for executing a function upon exiting a scope. More...

Classes

struct  oxy::scope_exit
 A utility for executing a function upon exiting a scope. More...

Namespaces

namespace  oxy
 This root namespace contains the common types and operations for the OXY-API library.

Detailed Description

A utility for executing a function upon exiting a scope.

The scope_exit struct allows you to specify a function that will be executed when the scope in which the scope_exit object is created is exited, either normally or due to an exception.

license MPL-2.0