blob: e5b8105e83d554d27af94ecc027d31ac1c5d218e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
module;
#include <cstddef>
export module person;
import <string>;
export class Person {
public:
Person(std::string firstName, std::string lastName)
: m_firstName{std::move(firstName)}, m_lastName{std::move(lastName)} {}
const std::string &getFirstName() const { return m_firstName; }
const std::string &getLastName() const { return m_lastName; }
private:
std::string m_firstName;
std::string m_lastName;
};
|