diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-03-26 13:48:57 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-03-26 13:48:57 +0000 |
commit | d9db9f90fbf5218a6edea70e49701bb110ee9180 (patch) | |
tree | 7c1e33ed7c98ef1f5bf99396a8af6e19c26bb527 /libcxx/include/__bit_reference | |
parent | 2e7d6cd0ec898ac5ff205a2aed096e20ab315cad (diff) | |
download | bcm5719-llvm-d9db9f90fbf5218a6edea70e49701bb110ee9180.tar.gz bcm5719-llvm-d9db9f90fbf5218a6edea70e49701bb110ee9180.zip |
Need one more swap overload for swapping two lvalue vector<bool>::reference's.
llvm-svn: 178016
Diffstat (limited to 'libcxx/include/__bit_reference')
-rw-r--r-- | libcxx/include/__bit_reference | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/include/__bit_reference b/libcxx/include/__bit_reference index 8180295bde3..1621deb8883 100644 --- a/libcxx/include/__bit_reference +++ b/libcxx/include/__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 |