Commit ee5b358d71

Tadeo Kondrak <me@tadeo.ca>
2020-04-28 07:45:54
add std.meta.Vector to replace @Vector
1 parent 249938d
Changed files (1)
lib
lib/std/meta.zig
@@ -650,3 +650,12 @@ pub fn IntType(comptime is_signed: bool, comptime bit_count: u16) type {
         },
     });
 }
+
+pub fn Vector(comptime len: u32, comptime child: type) type {
+    return @Type(TypeInfo{
+        .Vector = .{
+            .len = len,
+            .child = child,
+        },
+    });
+}