.. index:: pair: struct; EE::UI::UIValueResult .. _doxid-struct_e_e_1_1_u_i_1_1_u_i_value_result: template struct EE::UI::UIValueResult ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ A converted value together with its failure information. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template struct UIValueResult { // fields std::optional :target:`value`; :ref:`UIValueValidationResult` :target:`validation`; // construction :target:`UIValueResult`(); :target:`UIValueResult`(T value); // methods :target:`operator bool`() const; static UIValueResult :target:`success`(T value); static UIValueResult :target:`error`(:ref:`UIValueValidationResult` validation); static UIValueResult :target:`error`(:ref:`UIValueValidationResult::Code` code); static UIValueResult :target:`error`(:ref:`UIValueValidationResult::Code` code, std::string debugMessage); }; .. _details-struct_e_e_1_1_u_i_1_1_u_i_value_result: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A converted value together with its failure information. Successful results always contain a value. Failures contain no value and preserve the numeric code and optional diagnostic produced by a converter.