From 5c582e377fcc00367f31bfbb145e52ea44a8aaa4 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Thu, 20 Sep 2018 14:40:05 +0200
Subject: [PATCH] allow retrieval of regexp's symbol type

---
 alib2data/src/regexp/RegExp.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/alib2data/src/regexp/RegExp.h b/alib2data/src/regexp/RegExp.h
index 06d6194a58..fc79cb4412 100644
--- a/alib2data/src/regexp/RegExp.h
+++ b/alib2data/src/regexp/RegExp.h
@@ -35,6 +35,9 @@ class RegExp : public base::WrapperBase < RegExpBase > {
 
 };
 
+template < class T >
+using SymbolTypeOfRegexp = typename std::decay < decltype (std::declval<T>().getAlphabet()) >::type::value_type;
+
 regexp::RegExp regexpFrom ( const std::string & string );
 
 regexp::RegExp regexpFrom ( const char * string );
-- 
GitLab