lst-0041-book.cpp
struct ByYear { // implements less-than by Dwarf::year_
bool operator()(const Dwarf& a, const Dwarf& b) const {
return a.year_ < b.year_;
}
};
struct ByYear { // implements less-than by Dwarf::year_
bool operator()(const Dwarf& a, const Dwarf& b) const {
return a.year_ < b.year_;
}
};