├── .github └── workflows │ ├── macos.yml │ ├── ubuntu.yml │ └── windows.yml ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── example ├── CMakeLists.txt ├── scope_exit_example.cpp ├── scope_fail_example.cpp └── scope_success_example.cpp ├── include └── scope_guard.hpp └── test ├── 3rdparty ├── Catch2 │ ├── LICENSE │ ├── catch.hpp │ └── catch_trompeloeil.hpp └── Trompeloeil │ ├── LICENSE │ └── trompeloeil.hpp ├── CMakeLists.txt └── test.cpp /.github/workflows/macos.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/.github/workflows/macos.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/.github/workflows/ubuntu.yml -------------------------------------------------------------------------------- /.github/workflows/windows.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/.github/workflows/windows.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/README.md -------------------------------------------------------------------------------- /example/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/example/CMakeLists.txt -------------------------------------------------------------------------------- /example/scope_exit_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/example/scope_exit_example.cpp -------------------------------------------------------------------------------- /example/scope_fail_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/example/scope_fail_example.cpp -------------------------------------------------------------------------------- /example/scope_success_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/example/scope_success_example.cpp -------------------------------------------------------------------------------- /include/scope_guard.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/include/scope_guard.hpp -------------------------------------------------------------------------------- /test/3rdparty/Catch2/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/3rdparty/Catch2/LICENSE -------------------------------------------------------------------------------- /test/3rdparty/Catch2/catch.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/3rdparty/Catch2/catch.hpp -------------------------------------------------------------------------------- /test/3rdparty/Catch2/catch_trompeloeil.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/3rdparty/Catch2/catch_trompeloeil.hpp -------------------------------------------------------------------------------- /test/3rdparty/Trompeloeil/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/3rdparty/Trompeloeil/LICENSE -------------------------------------------------------------------------------- /test/3rdparty/Trompeloeil/trompeloeil.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/3rdparty/Trompeloeil/trompeloeil.hpp -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Neargye/scope_guard/HEAD/test/test.cpp --------------------------------------------------------------------------------