Lines Matching refs:std
34 WasmError(uint32_t offset, std::string message)
35 : offset_(offset), message_(std::move(message)) {
54 const std::string& message() const& { return message_; }
55 std::string&& message() && { return std::move(message_); }
58 static std::string FormatError(const char* format, va_list args);
62 std::string message_;
74 explicit Result(S&& value) : value_(std::forward<S>(value)) {}
77 Result(Result<S>&& other) V8_NOEXCEPT : value_(std::move(other.value_)),
78 error_(std::move(other.error_)) {}
80 explicit Result(WasmError error) : error_(std::move(error)) {}
84 value_ = std::move(other.value_);
85 error_ = std::move(other.error_);
92 WasmError&& error() && { return std::move(error_); }
96 // extract non-copyable values like {std::unique_ptr} by using
97 // {std::move(result).value()}.
104 return std::move(value_);
169 std::string error_msg_;
193 using VoidResult = Result<std::nullptr_t>;