A well-known instance of folly::Unit
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 25 Nov 2015 04:26:15 +0000 (20:26 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Wed, 25 Nov 2015 05:20:19 +0000 (21:20 -0800)
Summary: [Folly] A well-known instance of `folly::Unit`.

Reviewed By: jsedgwick

Differential Revision: D2693426

fb-gh-sync-id: fe595abc852500275a827b4f400cfda7091a55f7

folly/futures/Unit.h

index 521b206bcd150b0a159c097523e6638cf50e8664..bdc70f90c69909c3b13b63fa4ab941a67fb1dd33 100644 (file)
@@ -62,4 +62,6 @@ template <class T>
 struct is_void_or_unit : public Unit::Lift<T>
 {};
 
+constexpr Unit unit {};
+
 }