No need for a wrapping structure for posixTimeToDuration
[folly.git] / folly / Unit.h
index 0f90ff6e40f8b7669307b6a67ff66659906033b1..52f38fcfaf3caaa325bae8810b89b76c21bfd124 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;
@@ -55,4 +59,4 @@ struct Unit {
 
 constexpr Unit unit {};
 
-}
+} // namespace folly