Add folly::Identity function object to Utility.h; replace AtomicHashArray's AHAIdenti...
[folly.git] / folly / gen / Base.h
index 61e9d4104b383c0f0e968304e820ee456d1c6a92..a5d4b05a2e1166bd549dee6aa1908760f459b8f0 100644 (file)
@@ -30,6 +30,7 @@
 #include <folly/Conv.h>
 #include <folly/Optional.h>
 #include <folly/Range.h>
+#include <folly/Utility.h>
 #include <folly/gen/Core.h>
 
 /**
@@ -199,15 +200,6 @@ public:
   }
 };
 
-class Identity {
-public:
-  template<class Value>
-  auto operator()(Value&& value) const ->
-  decltype(std::forward<Value>(value)) {
-    return std::forward<Value>(value);
-  }
-};
-
 /**
  * Class and helper function for negating a boolean Predicate
  */