Folly.Poly: a library for creating type-erasing polymorphic wrappers
[folly.git] / folly / Utility.h
index bb196080c683ca52a4b86b0ac62bcda89983c765..1969a9644b20e63c9a0e92e5878c6b3df62de375 100644 (file)
@@ -310,4 +310,11 @@ class MoveOnly {
 } // namespace moveonly_
 
 using MoveOnly = moveonly_::MoveOnly;
+
+/**
+ * A pithy alias for std::integral_constant<bool, B>.
+ */
+template <bool B>
+using Bool = std::integral_constant<bool, B>;
+
 } // namespace folly