summaryrefslogtreecommitdiff
path: root/deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-03-05 22:08:59 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-03-06 10:08:09 +0200
commitb2286c6c8f9076de4143061a778fc676cc15eb84 (patch)
tree66afddb456cf35e99c0a4c4c8b32433f9811da76 /deps/tao_tuple/28626e99/include/tao/seq/is_all.hpp
parente8d6303d783a124aa5ba2fcf797df80a88ed546f (diff)
downloadqtlocation-mapboxgl-b2286c6c8f9076de4143061a778fc676cc15eb84.tar.gz
Bump Mapbox GL Native
mapbox-gl-native @ ae0e583590ce8d7a564c8d9cb7c0fcee5515125e Follow-up, added missing headers.
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