Mark a couple of internal routines as 'noexcept'

llvm-svn: 319779
This commit is contained in:
Marshall Clow 2017-12-05 15:56:26 +00:00
parent 51c1a627c2
commit fa40ee7779
1 changed files with 2 additions and 2 deletions

View File

@ -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