about summary refs log tree commit diff stats
path: root/cpp/literate/009includes
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/literate/009includes')
-rw-r--r--cpp/literate/009includes47
1 files changed, 47 insertions, 0 deletions
diff --git a/cpp/literate/009includes b/cpp/literate/009includes
new file mode 100644
index 00000000..c49c6c21
--- /dev/null
+++ b/cpp/literate/009includes
@@ -0,0 +1,47 @@
+// Some common includes needed all over the place.
+// More tightly-targeted includes show up in other files.
+
+:(before "End Includes")
+#include<cstdio>
+#include<cstring>
+#include<cstdlib>
+#include<errno.h>
+#include<time.h>
+#include<math.h>
+#include<vector>
+using std::vector;
+#include<list>
+using std::list;
+#include<stack>
+using std::stack;
+#include<utility>
+using std::pair;
+
+#include<tr1/unordered_map>
+using std::tr1::unordered_map;
+#include<tr1/unordered_set>
+using std::tr1::unordered_set;
+#include<algorithm>
+
+#include<string>
+using std::string;
+#define NOT_FOUND string::npos  // macro doesn't complain about redef
+
+#include<iostream>
+using std::istream;
+using std::ostream;
+using std::iostream;
+using std::cin;
+using std::cout;
+using std::cerr;
+
+#include<sstream>
+using std::stringstream;
+using std::istringstream;
+using std::ostringstream;
+
+#include<fstream>
+using std::ifstream;
+using std::ofstream;
+
+#define unused  __attribute__((unused))
a> 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236