MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / MedicalRecordNumber

Class MedicalRecordNumber

06.02-equalComparOfMRN1/main.cpp:6–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <cstdint>
5
6class MedicalRecordNumber {
7public:
8 MedicalRecordNumber() = default;
9 explicit MedicalRecordNumber(uint64_t mrn)
10 : mMRN{mrn}
11 {}
12
13 bool operator==(const MedicalRecordNumber& other) const
14 {
15 return other.mMRN == mMRN;
16 }
17
18 bool operator!=(const MedicalRecordNumber& other) const
19 {
20 return !(other == *this);
21 }
22
23private:
24 uint64_t mMRN;
25};
26
27int main()
28{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected