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.
2 parents fbd2afe + e3bbd58 commit 00d3be9Copy full SHA for 00d3be9
src/util/type.h
@@ -112,11 +112,22 @@ inline type_with_subtypet &to_type_with_subtype(typet &type)
112
class type_with_subtypest:public typet
113
{
114
public:
115
+ typedef std::vector<typet> subtypest;
116
+
117
type_with_subtypest() { }
118
119
explicit type_with_subtypest(const irep_idt &_id):typet(_id) { }
120
- typedef std::vector<typet> subtypest;
121
+ type_with_subtypest(const irep_idt &_id, const subtypest &_subtypes)
122
+ : typet(_id)
123
+ {
124
+ subtypes() = _subtypes;
125
+ }
126
127
+ type_with_subtypest(const irep_idt &_id, subtypest &&_subtypes) : typet(_id)
128
129
+ subtypes() = std::move(_subtypes);
130
131
132
subtypest &subtypes()
133
0 commit comments