26 #ifndef MLN_FUN_COMPONENT_COMP_COUNT_HH
27 # define MLN_FUN_COMPONENT_COMP_COUNT_HH
33 # include <mln/fun/unary.hh>
34 # include <mln/value/rgb.hh>
35 # include <mln/value/int_u.hh>
36 # include <mln/algebra/vec.hh>
44 struct comp_count : unary<comp_count>
50 # ifndef MLN_INCLUDE_ONLY
61 typedef set_precise_unary_ ret;
64 typedef unsigned result;
65 typedef argument& lvalue;
67 static result read(
const argument&)
73 template <
unsigned n,
typename T>
74 struct set_precise_unary_<mln::fun::comp_count, mln::algebra::vec<n,T> >
76 typedef set_precise_unary_ ret;
78 typedef mln::algebra::vec<n,T> argument;
79 typedef unsigned result;
80 typedef argument& lvalue;
82 static result read(
const argument&)
92 # endif // ! MLN_INCLUDE_ONLY
96 #endif // ! MLN_FUN_COMPONENT_COMP_COUNT_HH