Пример #1
0
 std::ostream & operator<<(std::ostream & o, Entry const & e)
 { return o << e.name << &e - &entries.front(); }
Пример #2
0
 unsigned int id(Tracked const & t) { return entry(&t) - &entries.front(); }