We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163bc94 commit e3bbd58Copy full SHA for e3bbd58
src/util/type.h
@@ -114,11 +114,22 @@ inline type_with_subtypet &to_type_with_subtype(typet &type)
114
class type_with_subtypest:public typet
115
{
116
public:
117
+ typedef std::vector<typet> subtypest;
118
+
119
type_with_subtypest() { }
120
121
explicit type_with_subtypest(const irep_idt &_id):typet(_id) { }
122
- typedef std::vector<typet> subtypest;
123
+ type_with_subtypest(const irep_idt &_id, const subtypest &_subtypes)
124
+ : typet(_id)
125
+ {
126
+ subtypes() = _subtypes;
127
+ }
128
129
+ type_with_subtypest(const irep_idt &_id, subtypest &&_subtypes) : typet(_id)
130
131
+ subtypes() = std::move(_subtypes);
132
133
134
subtypest &subtypes()
135
0 commit comments