Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 877 Bytes

File metadata and controls

29 lines (19 loc) · 877 Bytes

jsoncons::write_result

#include <jsoncons/ser_util.hpp>

using write_result = jsoncons::expected<void,std::error_code>;

Member types

Member type Definition
value_type void
error_type std::error_code

Accessors

constexpr operator bool() const noexcept;  
constexpr bool has_value() const noexcept;  

Checks whether the result contains an unexpected value

constexpr read_error& error() & noexcept;  
constexpr const read_error& error() const & noexcept;  
constexpr read_error&& error() && noexcept;  
constexpr const read_error&& error() const && noexcept;  

Returns the unexpected value std::error_code