summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-12-05 15:56:26 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-12-05 15:56:26 +0000
commitab7cb215b02c3246f565d7a16c13880ec188f041 (patch)
tree5e7802d550faff0c01b4456d4f1eefdd0acbbfa7
parentdf68ebc39b3d83f310b90e70e241b1b9aaf0ea49 (diff)
Mark a couple of internal routines as 'noexcept'
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@319779 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/memory4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/memory b/include/memory
index 753101123..df221ffa7 100644
--- a/include/memory
+++ b/include/memory
@@ -1730,10 +1730,10 @@ private:
}
_LIBCPP_INLINE_VISIBILITY
- static size_type __max_size(true_type, const allocator_type& __a)
+ static size_type __max_size(true_type, const allocator_type& __a) _NOEXCEPT
{return __a.max_size();}
_LIBCPP_INLINE_VISIBILITY
- static size_type __max_size(false_type, const allocator_type&)
+ static size_type __max_size(false_type, const allocator_type&) _NOEXCEPT
{return numeric_limits<size_type>::max() / sizeof(value_type);}
_LIBCPP_INLINE_VISIBILITY