lst-0240-book.cpp
std::ostream& Person::drucke(std::ostream& os) {
return os << format("{} ({}) aus {}", name_, alter_, ort_);
}
std::ostream& operator<<(std::ostream& os, Person p) {
return p.drucke(os);
}
std::ostream& Person::drucke(std::ostream& os) {
return os << format("{} ({}) aus {}", name_, alter_, ort_);
}
std::ostream& operator<<(std::ostream& os, Person p) {
return p.drucke(os);
}