aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libutil/types.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 4974634d8..13cb062fb 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -11,6 +11,7 @@
#include <map>
#include <variant>
#include <vector>
+#include <span>
namespace nix {
@@ -19,6 +20,10 @@ typedef std::set<std::string> StringSet;
typedef std::map<std::string, std::string> StringMap;
typedef std::map<std::string, std::string> StringPairs;
+// TODO this should be a std::byte span, but too much of the
+// current codebase predates std::byte and uses char instead
+using Bytes = std::span<const char>;
+
/**
* Paths are just strings.
*/