61 int addresses[] = {1,2,3,0,0,0,2,4,4,4,4,4,1,1,2,1,1,-1};
62 int want_val[] = {0,1,2,3,4,5,2,0,1,2,3,4,1,2,3,3,4,-1};
67 for (
int ind=0; addresses[ind] >= 0; ++ind) {
68 int addr = addresses[ind];
69 if (addr < 0) {
break; }
70 int want = want_val[ind];
71 int got = fanout(addr);
72 cerr <<
"addr=" << addr <<
" got:" << got <<
" want:" << want <<
endl;
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
void address(const address_type &addr)
Register an address.
constexpr std::enable_if_t< are_cv_compatible< TO, FROM >::value, std::add_pointer_t< std::remove_pointer_t< TO > > > addr(FROM &from)
void connect(const slot &s)
QTextStream & endl(QTextStream &s)