19#ifndef LIBSEMIGROUPS_DETAIL_GUARD_HPP_
20#define LIBSEMIGROUPS_DETAIL_GUARD_HPP_
27 template <
typename Thing>
34 Guard(Guard
const&) =
delete;
35 Guard(Guard&&) =
delete;
36 Guard& operator=(Guard
const&) =
delete;
37 Guard& operator=(Guard&&) =
delete;
39 Guard(Thing& value, Thing new_value) : _old_value(value), _value(value) {
43 explicit Guard(Thing& value) : _old_value(value), _value(value) {}
Namespace for everything in the libsemigroups library.
Definition action.hpp:44