27 #ifndef MLN_CONVERT_IMPL_FROM_UNSIGNED_TO_VALUE_HH
28 # define MLN_CONVERT_IMPL_FROM_UNSIGNED_TO_VALUE_HH
37 # include <mln/value/concept/integer.hh>
38 # include <mln/core/concept/value.hh>
39 # include <mln/value/label.hh>
40 # include <mln/math/round.hh>
51 void from_to_(
const unsigned& from, Value<V>& to);
54 void from_to_(
const unsigned& from,
bool& to);
58 # ifndef MLN_INCLUDE_ONLY
71 from_unsigned_to_value(
const unsigned& from,
80 from_unsigned_to_value(
const unsigned& from,
91 from_unsigned_to_value(
const unsigned&,
94 mlc_abort(V)::check();
103 template <
typename V>
106 from_unsigned_to_value_dispatch(
const unsigned& from, Value<V>&
to)
108 impl::from_unsigned_to_value(from,
exact(to));
116 template <
typename V>
118 from_to_(
const unsigned& from, Value<V>& to)
120 convert::internal::from_unsigned_to_value_dispatch(from, to);
126 from_to_(
const unsigned& from,
bool& to)
132 # endif // ! MLN_INCLUDE_ONLY
137 #endif // ! MLN_CONVERT_IMPL_FROM_UNSIGNED_TO_VALUE_HH