@@ -66,17 +66,17 @@ namespace dlib
6666 /* constructors and destructor
6767 *-nothing to do because the std_allocator has no state
6868 */
69- std_allocator () throw () { }
69+ std_allocator () noexcept { }
7070
71- std_allocator (const std_allocator&) throw () { }
71+ std_allocator (const std_allocator&) noexcept { }
7272
7373 template <typename U>
74- std_allocator (const std_allocator<U,M>&) throw () { }
74+ std_allocator (const std_allocator<U,M>&) noexcept { }
7575
76- ~std_allocator () throw () { }
76+ ~std_allocator () noexcept { }
7777
7878 // return maximum number of elements that can be allocated
79- size_type max_size () const throw()
79+ size_type max_size () const noexcept
8080 {
8181 // for numeric_limits see Section 4.3, page 59
8282 return std::numeric_limits<size_t >::max () / sizeof (T);
@@ -173,14 +173,14 @@ namespace dlib
173173 bool operator == (
174174 const std_allocator<T1,M1>&,
175175 const std_allocator<T2,M2>&
176- ) throw ()
176+ ) noexcept
177177 { return std_alloc_compare<M1,M2>::are_interchangeable; }
178178
179179 template <typename T1, typename M1, typename T2, typename M2>
180180 bool operator != (
181181 const std_allocator<T1,M1>&,
182182 const std_allocator<T2,M2>&
183- ) throw ()
183+ ) noexcept
184184 { return !std_alloc_compare<M1,M2>::are_interchangeable; }
185185
186186// ----------------------------------------------------------------------------------------
0 commit comments