cpp/regex/regex error/code

Returns the std that was passed to the std constructor.