From ee5b358d71d544b06070681b245c9f1bad8b1a99 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Mon, 27 Apr 2020 23:45:54 -0600 Subject: [PATCH] add std.meta.Vector to replace @Vector --- lib/std/meta.zig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 7343cfc51..8ebaf14a5 100644 --- a/lib/std/meta.zig +++ b/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, + }, + }); +}