summaryrefslogtreecommitdiff
path: root/deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp')
-rw-r--r--deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp b/deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp
new file mode 100644
index 0000000000..5707058755
--- /dev/null
+++ b/deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp
@@ -0,0 +1,35 @@
+// The Art of C++ / Sequences
+// Copyright (c) 2015 Daniel Frey
+
+#ifndef TAOCPP_SEQUENCES_INCLUDE_IS_ALL_HPP
+#define TAOCPP_SEQUENCES_INCLUDE_IS_ALL_HPP
+
+#include "config.hpp"
+
+#ifndef TAOCPP_FOLD_EXPRESSIONS
+#include "integer_sequence.hpp"
+#endif
+
+#include <type_traits>
+
+namespace tao
+{
+ namespace seq
+ {
+
+#ifdef TAOCPP_FOLD_EXPRESSIONS
+
+ template< bool... Bs >
+ using is_all = std::integral_constant< bool, ( Bs && ... ) >;
+
+#else
+
+ template< bool... Bs >
+ using is_all = std::integral_constant< bool, std::is_same< integer_sequence< bool, true, Bs... >, integer_sequence< bool, Bs..., true > >::value >;
+
+#endif
+
+ }
+}
+
+#endif // TAOCPP_SEQUENCES_INCLUDE_IS_ALL_HPP