aboutsummaryrefslogtreecommitdiff
path: root/build2/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
commit9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b (patch)
treed60322d4382ca5f97b676c5abe2e39524f35eab4 /build2/types
parentf159b1dac68c8714f7ba71ca168e3b695891aad9 (diff)
Rename build directory/namespace to build2
Diffstat (limited to 'build2/types')
-rw-r--r--build2/types55
1 files changed, 55 insertions, 0 deletions
diff --git a/build2/types b/build2/types
new file mode 100644
index 0000000..da96805
--- /dev/null
+++ b/build2/types
@@ -0,0 +1,55 @@
+// file : build2/types -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD2_TYPES
+#define BUILD2_TYPES
+
+#include <vector>
+#include <string>
+#include <utility> // pair
+#include <memory> // unique_ptr, shared_ptr
+#include <cstddef> // size_t
+#include <functional> // reference_wrapper
+
+#include <butl/path>
+#include <butl/timestamp>
+
+#include <build2/name>
+
+namespace build2
+{
+ // Commonly-used types.
+ //
+ using std::pair;
+ using std::size_t;
+ using std::string;
+ using std::unique_ptr;
+ using std::shared_ptr;
+ using std::reference_wrapper;
+ using std::vector;
+
+ using strings = vector<string>;
+ using cstrings = vector<const char*>;
+
+ // <butl/path>
+ //
+ using butl::path;
+ using butl::dir_path;
+ using butl::basic_path;
+ using butl::invalid_path;
+
+ using paths = std::vector<path>;
+ using dir_paths = std::vector<dir_path>;
+
+ // <butl/timestamp>
+ //
+ using butl::system_clock;
+ using butl::timestamp;
+ using butl::duration;
+ using butl::timestamp_unknown;
+ using butl::timestamp_nonexistent;
+ using butl::operator<<;
+}
+
+#endif // BUILD2_TYPES