[PATCH] D31234: Implement P0599 - noexcept for hash functions

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 21 22:38:14 PDT 2017


mclow.lists created this revision.

Mark most of the hash functions provided by libc++ as noexcept; the exceptions being `optional` and `variant`.
Tests to ensure this.

There's still some investigation to be done on `unique_ptr` and fancy pointer support, but that can come later.


https://reviews.llvm.org/D31234

Files:
  include/optional
  include/thread
  include/variant
  test/std/containers/sequences/vector.bool/vector_bool.pass.cpp
  test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp
  test/std/diagnostics/syserr/syserr.hash/error_condition.pass.cpp
  test/std/strings/basic.string.hash/strings.pass.cpp
  test/std/strings/string.view/string.view.hash/string_view.pass.cpp
  test/std/thread/thread.threads/thread.thread.class/thread.thread.id/thread_id.pass.cpp
  test/std/utilities/function.objects/unord.hash/enum.pass.cpp
  test/std/utilities/function.objects/unord.hash/floating.pass.cpp
  test/std/utilities/function.objects/unord.hash/integral.pass.cpp
  test/std/utilities/function.objects/unord.hash/pointer.pass.cpp
  test/std/utilities/template.bitset/bitset.hash/bitset.pass.cpp
  test/std/utilities/variant/variant.hash/hash.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31234.92598.patch
Type: text/x-patch
Size: 10852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170322/9cbff779/attachment.bin>


More information about the cfe-commits mailing list