[libcxx] r319779 - Mark a couple of internal routines as 'noexcept'

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 07:56:26 PST 2017


Author: marshall
Date: Tue Dec  5 07:56:26 2017
New Revision: 319779

URL: http://llvm.org/viewvc/llvm-project?rev=319779&view=rev
Log:
Mark a couple of internal routines as 'noexcept'

Modified:
    libcxx/trunk/include/memory

Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=319779&r1=319778&r2=319779&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Tue Dec  5 07:56:26 2017
@@ -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




More information about the cfe-commits mailing list