This change contains many small API fixes and additions that would have ridden in on a much larger change; isolating them into their own commit is mostly done to improve linear history.
Changes are approximately as follows:
best::result will best::format the error value when forcibly unwrapped.
Added best::row::each().
Added deduction guides for best::vec to allow deduction from ranges and iterators.
Added overload to best::call for handling a pack of non-type template parameters (my kingdom for circle's template auto).
Added best::iter::enumerate().
Added new variants of best::tlist::apply and best::tlist::each that pass the ::value of each element as a non-type template parameter into the callback; simplifies a lot of code that was doing best::indices<n>.apply(...).
Functions on best::formatter::block are now chainable (that they weren't was a bug).
This change contains many small API fixes and additions that would have ridden in on a much larger change; isolating them into their own commit is mostly done to improve linear history.
Changes are approximately as follows:
best::result
willbest::format
the error value when forcibly unwrapped.best::row::each()
.best::vec
to allow deduction from ranges and iterators.best::call
for handling a pack of non-type template parameters (my kingdom for circle'stemplate auto
).best::iter::enumerate()
.best::tlist::apply
andbest::tlist::each
that pass the::value
of each element as a non-type template parameter into the callback; simplifies a lot of code that was doingbest::indices<n>.apply(...)
.best::formatter::block
are now chainable (that they weren't was a bug).