aboutsummaryrefslogtreecommitdiff
path: root/system/include/libcxx/__bit_reference
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-01 16:01:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-01 16:01:04 -0700
commit00c2e03551a61ca76bdb303f1c007845f8a6dbd6 (patch)
tree51a3fb38eff156561441960606533fd0c1be71df /system/include/libcxx/__bit_reference
parent36600f34ef0ec2cf75165be3753567e256f514db (diff)
parent2787d1f7d01afb598ed56c4d52dab876e0a34a74 (diff)
Merge pull request #1009 from waywardmonkeys/another-libcxx-update1.3.6
Another libcxx update
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