#include #include #include #include namespace book_store::consumer { auto person::last_name() const noexcept -> std::string_view { return this->_last_name; } auto person::first_name() const noexcept -> std::string_view { return this->_first_name; } auto person::full_name(bool last_first) const noexcept -> std::string { if (last_first) { return this->_last_name + ", " + this->_first_name; } return this->_first_name + " " + this->_last_name; } auto person::id() const noexcept -> std::size_t { return this->_id; } auto person::last_name(std::string_view last_name) noexcept -> person & { this->_last_name = last_name; return *this; } auto person::first_name(std::string_view first_name) noexcept -> person & { this->_first_name = first_name; return *this; } auto person::id(std::size_t person_id) noexcept -> person & { this->_id = person_id; return *this; } } // namespace book_store::consumer