Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Person {
- std::string id;
- std::string name;
- int age;
- };
- class PersonRepository {
- public:
- void addPerson(const Person& p) {
- }
- std::optional<Person> getPerson(const std::string& id) const {
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment