45#include <gtest/gtest.h>
119 throw std::runtime_error(
"test exception");
121 catch (
const std::runtime_error&)
137 throw std::runtime_error(
"test exception");
139 catch (
const std::runtime_error&)
372 explicit Cleanup(
bool& f) : flag(f) {}
373 void operator()() { flag =
true; }
386 std::function<
void()> cleanup = [&called]() { called =
true; };
410 std::vector<int>
log;
RAII guard for exception-safe resource cleanup.
void free_function_cleanup(bool &flag)
size_t size() const noexcept
Count the number of elements of the list.
RAII guard for graph algorithm initialization.
__gmp_expr< T, __gmp_unary_expr< __gmp_expr< T, U >, __gmp_log_function > > log(const __gmp_expr< T, U > &expr)
Main namespace for Aleph-w library functions.
auto make_init_guard(CleanupFunc f)
Create an Init_Guard with a cleanup function.
DynList< T > maps(const C &c, Op op)
Classic map operation.