EasyLocalAPI reference iolab-uniud/easylocal

easylocal::cost::from_text

The cost written by text: throws std::invalid_argument, with the reason, when the text does not describe a value of the type.

Synopsis

Declared in <easylocal/cost/text.hpp>

template<text_readable Cost>
[[nodiscard]]
Cost
from_text(std::string_view text);

Return Value

NOTE

The return value should not be discarded.