public:
Author() {}
- Author(string n, string e)
- : name_(n), email_(e) {}
+ Author(string const & name, string const & email)
+ : name_(name), email_(email) {}
string const name() const {
return name_;
class AuthorList {
public:
+ AuthorList();
+
int record(Author const & a);
void record(int id, Author const & a);
Authors::const_iterator end() const;
private:
+ int last_id_;
+
Authors authors_;
};