You can use std containers in a no-exceptions environment. Just know that if an error occurs the program will terminate.
var x: ?*i32 = undefined;
{
var a: i32 = 5;
x.? = &a;
}
std.debug.print("{} {}", .{ x.?.*, get_ptr().* });
}