From c83960a9e45fb5f787404b2090e0b95bb35bf0ff Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 20 Jul 2012 21:44:27 +0000 Subject: [PATCH] noexcept applied to . git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@160579 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/random | 16 ++++++++-------- src/random.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/random b/include/random index 098332725..305f8866d 100644 --- a/include/random +++ b/include/random @@ -217,7 +217,7 @@ public: void discard(unsigned long long z); // property functions - const Engine& base() const; + const Engine& base() const noexcept; }; template @@ -269,7 +269,7 @@ public: result_type operator()(); void discard(unsigned long long z); // property functions - const Engine& base() const; + const Engine& base() const noexcept; }; template @@ -323,7 +323,7 @@ public: void discard(unsigned long long z); // property functions - const Engine& base() const; + const Engine& base() const noexcept; }; template @@ -392,7 +392,7 @@ public: result_type operator()(); // property functions - double entropy() const; + double entropy() const noexcept; // no copy functions random_device(const random_device& ) = delete; @@ -2788,7 +2788,7 @@ public: // property functions _LIBCPP_INLINE_VISIBILITY - const _Engine& base() const {return __e_;} + const _Engine& base() const _NOEXCEPT {return __e_;} template friend @@ -2993,7 +2993,7 @@ public: // property functions _LIBCPP_INLINE_VISIBILITY - const _Engine& base() const {return __e_;} + const _Engine& base() const _NOEXCEPT {return __e_;} template friend @@ -3222,7 +3222,7 @@ public: // property functions _LIBCPP_INLINE_VISIBILITY - const _Engine& base() const {return __e_;} + const _Engine& base() const _NOEXCEPT {return __e_;} private: template @@ -3399,7 +3399,7 @@ public: result_type operator()(); // property functions - double entropy() const; + double entropy() const _NOEXCEPT; private: // no copy functions diff --git a/src/random.cpp b/src/random.cpp index 6140b74ec..97a40c509 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -40,7 +40,7 @@ random_device::operator()() } double -random_device::entropy() const +random_device::entropy() const _NOEXCEPT { return 0; }