summaryrefslogtreecommitdiff
path: root/src/meta.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-11-01 21:51:10 +1100
committerMaxime Coste <mawww@kakoune.org>2018-11-01 21:51:10 +1100
commit6fce8050ee29c97a96ff97823698d539b7c734d0 (patch)
tree3dbf730427b761f02336caa4d422e25c475c8188 /src/meta.hh
parent8a751e1b57b07ff43739e69f395ee4dfc3431ba0 (diff)
Use BufferCoord sentinel type for regex matching on BufferIterators
BufferIterators are large-ish, and need to check the buffer pointer on comparison. Checking against a coord is just a 64 bit comparison.
Diffstat (limited to 'src/meta.hh')
-rw-r--r--src/meta.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/meta.hh b/src/meta.hh
index 280f2b93..15429ca8 100644
--- a/src/meta.hh
+++ b/src/meta.hh
@@ -9,6 +9,8 @@ inline namespace Meta
struct AnyType{};
template<typename T> struct Type : AnyType {};
+template<typename T> using void_t = void;
+
}
}