26 #ifndef MLN_FUN_V2V_COMPONENT_HH
27 # define MLN_FUN_V2V_COMPONENT_HH
33 # include <mln/core/concept/function.hh>
34 # include <mln/trait/value_.hh>
35 # include <mln/trait/value/comp.hh>
36 # include <mln/value/builtin/all.hh>
50 template <
typename T,
unsigned i>
52 private metal::bool_<(i <= trait::value_<T>::dim)>::check_t
54 typedef mln_trait_value_comp(T, i) result;
55 result operator()(const T& v) const;
59 # ifndef MLN_INCLUDE_ONLY
61 template <typename T, unsigned i>
63 typename component<T,i>::result
64 component<T,i>::operator()(const T& v) const
66 return trait::value::internal::comp<T,i>::on(v);