aboutsummaryrefslogtreecommitdiff
path: root/system/include/libcxx/__bit_reference
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libcxx/__bit_reference')
-rw-r--r--system/include/libcxx/__bit_reference10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/include/libcxx/__bit_reference b/system/include/libcxx/__bit_reference
index 8180295b..1621deb8 100644
--- a/system/include/libcxx/__bit_reference
+++ b/system/include/libcxx/__bit_reference
@@ -81,6 +81,16 @@ class __bit_reference<_Cp, false>
{
};
+template <class _Cp>
+_LIBCPP_INLINE_VISIBILITY inline
+void
+swap(__bit_reference<_Cp> __x, __bit_reference<_Cp> __y) _NOEXCEPT
+{
+ bool __t = __x;
+ __x = __y;
+ __y = __t;
+}
+
template <class _Cp, class _Dp>
_LIBCPP_INLINE_VISIBILITY inline
void