summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__functional_base
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-21 00:02:12 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-21 00:02:12 +0000
commitf9127593a9fd0ef585fed52f838d89c825b8cd72 (patch)
tree62a21ebb1691065d901bb9bb1294b3a2bd56021f /libcxx/include/__functional_base
parent59e1df524f41d3c2ba1de62f4abea1582cc7332e (diff)
downloadbcm5719-llvm-f9127593a9fd0ef585fed52f838d89c825b8cd72.tar.gz
bcm5719-llvm-f9127593a9fd0ef585fed52f838d89c825b8cd72.zip
Implement P0513R0 - "Poisoning the Hash"
Summary: Exactly what the title says. This patch also adds a `std::hash<nullptr_t>` specialization in C++17, but it was not added by this paper and I can't find the actual paper that adds it. See http://wg21.link/P0513R0 for more info. If there are no comments in the next couple of days I'll commit this Reviewers: mclow.lists, K-ballo, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28938 llvm-svn: 292684
Diffstat (limited to 'libcxx/include/__functional_base')
-rw-r--r--libcxx/include/__functional_base8
1 files changed, 1 insertions, 7 deletions
diff --git a/libcxx/include/__functional_base b/libcxx/include/__functional_base
index 05c9f066fd0..4e2b7eb8d28 100644
--- a/libcxx/include/__functional_base
+++ b/libcxx/include/__functional_base
@@ -16,6 +16,7 @@
#include <typeinfo>
#include <exception>
#include <new>
+#include <utility>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
@@ -23,13 +24,6 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _Arg, class _Result>
-struct _LIBCPP_TEMPLATE_VIS unary_function
-{
- typedef _Arg argument_type;
- typedef _Result result_type;
-};
-
template <class _Arg1, class _Arg2, class _Result>
struct _LIBCPP_TEMPLATE_VIS binary_function
{
OpenPOWER on IntegriCloud