alpaqa pi-pico
Nonconvex constrained optimization
Loading...
Searching...
No Matches
noop-delete.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace alpaqa::util {
4
5/// Deleter for `std::unique_ptr` that just destructs the object, without
6/// deallocating.
7template <class T>
8struct noop_delete {
10 template <class U>
12 constexpr void operator()(T *t) const noexcept { t->~T(); }
13};
14
15} // namespace alpaqa::util
constexpr const auto inf
Definition config.hpp:112
Deleter for std::unique_ptr that just destructs the object, without deallocating.
constexpr void operator()(T *t) const noexcept
constexpr noop_delete() noexcept=default