Modernes C++ programmieren

Okt 20, 2024

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_;
    }
};