Skip to content
Snippets Groups Projects
Commit 625f3923 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

unified access to retrieve SymbolType of grammar

parent cf06044a
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@
#include <base/WrapperBase.hpp>
#include "GrammarBase.h"
 
#include <type_traits>
namespace grammar {
 
/**
......@@ -27,6 +29,9 @@ public:
}
};
 
template < class T >
using SymbolTypeOfGrammar = typename std::decay < decltype (std::declval<T>().getNonterminalAlphabet()) >::type::value_type;
} /* namespace grammar */
 
#endif /* GRAMMAR_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment