19 enum class algo :
unsigned int
42 throw std::invalid_argument(
"Invalid algo: " + std::to_string(
static_cast<unsigned int>(a)));
56 throw std::invalid_argument(
"Invalid algo: " + std::string{a});
constexpr std::array< std::string_view, static_cast< size_t >(algo::TOTAL)> ALGOS_LABELS_LOWERCASE
Array of string_view labels for the algo enum, in lowercase.
Definition algos.h:29
algo
Enumeration of maze generation algorithms.
Definition algos.h:20
algo to_algo_from_sv(std::string_view a)
Convert a string_view to an algo enum.
Definition algos.h:50
std::string_view to_sv_from_algo(algo a)
Convert the algo enum to a string_view.
Definition algos.h:38