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

Class MedicalRecordNumber

06.05-equalComparOfMRN3/main.cpp:6–22  ·  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
14 operator==(const MedicalRecordNumber& other) const = default;
15 bool operator==(const uint64_t& other) const
16 {
17 return other == mMRN;
18 }
19
20private:
21 uint64_t mMRN;
22};
23
24int main()
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected