compound: Add method for checking if type is compound or not

Will be used by legacy comparator.
This commit is contained in:
Tomasz Grabiec
2015-04-28 10:01:27 +02:00
parent 08a17496a3
commit 8d2233fb33

View File

@@ -58,6 +58,10 @@ public:
return _types;
}
bool is_singular() const {
return _types.size() == 1;
}
prefix_type as_prefix() {
return prefix_type(_types);
}