|
@@ -46,6 +46,10 @@ public:
|
|
return __left.__locale == nullptr && __right == 0;
|
|
return __left.__locale == nullptr && __right == 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ friend bool operator==(const locale_t& __left, long long __right) {
|
|
|
|
+ return __left.__locale == nullptr && __right == 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
friend bool operator==(const locale_t& __left, std::nullptr_t) {
|
|
friend bool operator==(const locale_t& __left, std::nullptr_t) {
|
|
return __left.__locale == nullptr;
|
|
return __left.__locale == nullptr;
|
|
}
|
|
}
|
|
@@ -66,6 +70,10 @@ public:
|
|
return !(__left == __right);
|
|
return !(__left == __right);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ friend bool operator!=(const locale_t& __left, long long __right) {
|
|
|
|
+ return !(__left == __right);
|
|
|
|
+ }
|
|
|
|
+
|
|
friend bool operator!=(const locale_t& __left, std::nullptr_t __right) {
|
|
friend bool operator!=(const locale_t& __left, std::nullptr_t __right) {
|
|
return !(__left == __right);
|
|
return !(__left == __right);
|
|
}
|
|
}
|