Typedef sequant::index_to_extent_t¶
Defined in File options.hpp
Typedef Documentation¶
-
using sequant::index_to_extent_t = std::function<std::size_t(Index const&)>¶
A type-erased provider mapping an Index to its extent. Used by the public optimize() API. Callers reaching for the templated opt::single_term_opt overloads (constrained by opt::has_index_extent) should pass the callable directly instead of wrapping it here — that keeps the cost function’s call site inlineable, whereas a value of this alias goes through std::function’s type-erased dispatch on every Index lookup.