More dependency check-ups
[invirt/third/libt4.git] / types.h
diff --git a/types.h b/types.h
index e6b5895..e78186c 100644 (file)
--- a/types.h
+++ b/types.h
@@ -50,6 +50,7 @@ using std::ostream;
 using std::istream;
 using std::ostream_iterator;
 using std::istream_iterator;
+using std::ios;
 
 #include <limits>
 using std::numeric_limits;
@@ -77,6 +78,11 @@ using std::stoi;
 
 #include <thread>
 using std::thread;
+using std::call_once;
+using std::once_flag;
+namespace this_thread {
+    using namespace std::this_thread;
+}
 
 #include <tuple>
 using std::tuple;
@@ -92,10 +98,12 @@ using std::is_member_function_pointer;
 using std::is_same;
 using std::underlying_type;
 using std::enable_if;
+using std::remove_reference;
 
 #include <utility>
 using std::pair;
 using std::declval;
+using std::forward;
 
 #include <vector>
 using std::vector;
@@ -145,4 +153,21 @@ LEXICOGRAPHIC_OPERATOR(_c_, <) LEXICOGRAPHIC_OPERATOR(_c_, <=) \
 LEXICOGRAPHIC_OPERATOR(_c_, >) LEXICOGRAPHIC_OPERATOR(_c_, >=) \
 LEXICOGRAPHIC_OPERATOR(_c_, ==) LEXICOGRAPHIC_OPERATOR(_c_, !=)
 
+// The following implementation of tuple_indices is redistributed under the MIT
+// License as an insubstantial portion of the LLVM compiler infrastructure.
+
+template <size_t...> struct tuple_indices {};
+template <size_t S, class IntTuple, size_t E> struct make_indices_imp;
+template <size_t S, size_t... Indices, size_t E> struct make_indices_imp<S, tuple_indices<Indices...>, E> {
+    typedef typename make_indices_imp<S+1, tuple_indices<Indices..., S>, E>::type type;
+};
+template <size_t E, size_t... Indices> struct make_indices_imp<E, tuple_indices<Indices...>, E> {
+    typedef tuple_indices<Indices...> type;
+};
+template <size_t E, size_t S=0> struct make_tuple_indices {
+    typedef typename make_indices_imp<S, tuple_indices<>, E>::type type;
+};
+
+#include "endian.h"
+
 #endif