From 8d2233fb33a09fbc225fbb64cc4d1b266d67cd65 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Tue, 28 Apr 2015 10:01:27 +0200 Subject: [PATCH] compound: Add method for checking if type is compound or not Will be used by legacy comparator. --- compound.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compound.hh b/compound.hh index 2f7c9b11e8..4d90146fec 100644 --- a/compound.hh +++ b/compound.hh @@ -58,6 +58,10 @@ public: return _types; } + bool is_singular() const { + return _types.size() == 1; + } + prefix_type as_prefix() { return prefix_type(_types); }