Add SemiFuture class.
[folly.git] / folly / Unit.h
index 0f90ff6e40f8b7669307b6a67ff66659906033b1..dfcce1d3ff37b13ca20d9fff9008f483f3302b08 100644 (file)
@@ -43,7 +43,11 @@ struct Unit {
   template <typename T>
   struct Lift : std::conditional<std::is_same<T, void>::value, Unit, T> {};
   template <typename T>
+  using LiftT = typename Lift<T>::type;
+  template <typename T>
   struct Drop : std::conditional<std::is_same<T, Unit>::value, void, T> {};
+  template <typename T>
+  using DropT = typename Drop<T>::type;
 
   constexpr bool operator==(const Unit& /*other*/) const {
     return true;