Range-v3
Range algorithms, views, and actions for the Standard Library
scope_exit.hpp File Reference

Classes

struct  ranges::v3::scope_exit< Fun >
 

Namespaces

 ranges
 unstable_remove have O(1) complexity for each element remove, unlike remove O(n) [for worst case] Each erased element overwritten (moved in) with last one.
 

Functions

template<typename Fun , typename ScopeExit = scope_exit<meta::_t<std::decay<Fun>>>>
ScopeExit ranges::v3::make_scope_exit (Fun &&fun) noexcept(noexcept(ScopeExit(ScopeExit((Fun &&) fun))))