diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2011-05-28 17:59:48 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2011-05-28 17:59:48 +0000 |
| commit | 6a07d6f06d1e9d88dd04d68e07b5fa71ed9a910a (patch) | |
| tree | 6246e94c2769bae47794fb1711ddcbb9f7301f1d /libcxx/include/__functional_base | |
| parent | d86c1c41fb61ae805374c2bdac7db1e5e2d9b6e4 (diff) | |
| download | bcm5719-llvm-6a07d6f06d1e9d88dd04d68e07b5fa71ed9a910a.tar.gz bcm5719-llvm-6a07d6f06d1e9d88dd04d68e07b5fa71ed9a910a.zip | |
noexcept for <functional>.
llvm-svn: 132264
Diffstat (limited to 'libcxx/include/__functional_base')
| -rw-r--r-- | libcxx/include/__functional_base | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/include/__functional_base b/libcxx/include/__functional_base index caf0093eb81..f2aa5041b87 100644 --- a/libcxx/include/__functional_base +++ b/libcxx/include/__functional_base @@ -350,14 +350,14 @@ private: public: // construct/copy/destroy - _LIBCPP_INLINE_VISIBILITY reference_wrapper(type& __f) : __f_(&__f) {} + _LIBCPP_INLINE_VISIBILITY reference_wrapper(type& __f) _NOEXCEPT : __f_(&__f) {} #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES private: reference_wrapper(type&&); public: // = delete; // do not bind to temps #endif // access - _LIBCPP_INLINE_VISIBILITY operator type& () const {return *__f_;} - _LIBCPP_INLINE_VISIBILITY type& get() const {return *__f_;} + _LIBCPP_INLINE_VISIBILITY operator type& () const _NOEXCEPT {return *__f_;} + _LIBCPP_INLINE_VISIBILITY type& get() const _NOEXCEPT {return *__f_;} // invoke template <class... _ArgTypes> @@ -377,7 +377,7 @@ template <class _Tp> struct __is_reference_wrapper template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY reference_wrapper<_Tp> -ref(_Tp& __t) +ref(_Tp& __t) _NOEXCEPT { return reference_wrapper<_Tp>(__t); } @@ -385,7 +385,7 @@ ref(_Tp& __t) template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY reference_wrapper<_Tp> -ref(reference_wrapper<_Tp> __t) +ref(reference_wrapper<_Tp> __t) _NOEXCEPT { return ref(__t.get()); } @@ -393,7 +393,7 @@ ref(reference_wrapper<_Tp> __t) template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY reference_wrapper<const _Tp> -cref(const _Tp& __t) +cref(const _Tp& __t) _NOEXCEPT { return reference_wrapper<const _Tp>(__t); } @@ -401,7 +401,7 @@ cref(const _Tp& __t) template <class _Tp> inline _LIBCPP_INLINE_VISIBILITY reference_wrapper<const _Tp> -cref(reference_wrapper<_Tp> __t) +cref(reference_wrapper<_Tp> __t) _NOEXCEPT { return cref(__t.get()); } |

