1 #ifndef _ITERATOR_HPP__
2 #define _ITERATOR_HPP__
4 #include "IoTDeviceAddress.hpp"
5 #include "LightBulbTest.hpp"
9 template<> struct hash<IoTDeviceAddress>
11 size_t operator()(IoTDeviceAddress const& devAddress) const
13 return devAddress.hash(devAddress);
19 bool operator==(const IoTDeviceAddress& lhs, const IoTDeviceAddress& rhs) {
20 return lhs.hash(lhs) == rhs.hash(rhs);
26 template<> struct hash<LightBulbTest>
28 size_t operator()(LightBulbTest const& device) const
30 return device.hash(device);
36 bool operator==(const LightBulbTest& lhs, const LightBulbTest& rhs) {
37 return lhs.hash(lhs) == rhs.hash(rhs);