14 swap(_name, timezone._name);
15 swap(_offset, timezone._offset);
16 swap(_dstoffset, timezone._dstoffset);
21 timezone1.swap(timezone2);
31 typedef size_t result_type;
33 result_type operator() (
const argument_type& value)
const
35 result_type result = 17;
36 result = result * 31 + std::hash<std::string>()(value.name());
37 result = result * 31 + std::hash<CppCommon::Timespan>()(value.offset());
38 result = result * 31 + std::hash<CppCommon::Timespan>()(value.daylight());
void swap(Timezone &timezone) noexcept
Swap two instances.
C++ Common project definitions.
void swap(FileCache &cache1, FileCache &cache2) noexcept
void swap(Timezone &timezone1, Timezone &timezone2) noexcept