+lst::type::cuptr lst::structure_type::copy() const
+{
+ structure_type::fields copy_of_fields;
+
+ copy_of_fields.reserve(fields_.size());
+ for (const auto& field : fields_) {
+ copy_of_fields.emplace_back(lttng::make_unique<lst::field>(
+ field->name, field->get_type().copy()));
+ }
+
+ return lttng::make_unique<structure_type>(alignment, std::move(copy_of_fields));
+}
+