Skip to content

frederick-vs-ja/constexpr-scope-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Constexpr scope guards

Constexpr-ized version of scope guards in LFTS v3. Single-header implementation.

Currently referenced version: N4908

Other documentation(s):

Requires:

  • C++20 constraints (requires-clause) (reference)
  • C++20 std::is_constant_evaluated (reference)
  • C++20 constexpr destructors (reference)
  • C++20 [[no_unique_address]] (reference)
  • Numerous C++17/14/11 features

Modifications from the LFTS v3 version:

  • utilities are in namespace ::fvs instead of ::std::experimental
  • all member and non-member functions are constexpr-ized

Test cases are still missing for now. (2022-09-05)

About

Constexpr-ized version of scope guards in LFTS v3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages