about summary refs log tree commit diff stats
path: root/cpp/009includes
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-18 14:48:19 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-18 14:48:19 -0800
commit01b2852b653a81c4d5e197a0c52659c7e0dcaf5f (patch)
tree9c9864846c27191afd73b4c1a44810ac0fdd1091 /cpp/009includes
parent9fc64bbc95bb4e55f28f5262d0f5c660177f0a19 (diff)
downloadmu-01b2852b653a81c4d5e197a0c52659c7e0dcaf5f.tar.gz
782 - promote literate version to canonical C++ version
Diffstat (limited to 'cpp/009includes')
-rw-r--r--cpp/009includes48
1 files changed, 48 insertions, 0 deletions
diff --git a/cpp/009includes b/cpp/009includes
new file mode 100644
index 00000000..5c9a8d65
--- /dev/null
+++ b/cpp/009includes
@@ -0,0 +1,48 @@
+// Some common includes needed all over the place.
+// More tightly-targeted includes show up in other files.
+
+:(before "End Includes")
+#include<assert.h>
+#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))