EasyLocalAPI reference iolab-uniud/easylocal

easylocal::cost::operator-

delta(candidate, current), when the soft cost has a delta.

Synopsis

Declared in <easylocal/cost/hierarchical.hpp>

[[nodiscard]]
constexpr
auto
operator-(
    hierarchical const& candidate,
    hierarchical const& current)
requires has_delta<hierarchical>;

NOTE

This function is a hidden friend of hierarchical, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

NOTE

The return value should not be discarded.