.. index:: pair: class; EE::Result .. _doxid-class_e_e_1_1_result_3_01void_00_01_e_01_4: template class EE::Result ================================== .. toctree:: :hidden: Overview ~~~~~~~~ :ref:`Result ` specialization for operations that produce no value on success. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class Result { public: // typedefs typedef void :target:`ValueType`; typedef E :target:`ErrorType`; // fields E :target:`mError`; // construction :target:`Result`(:ref:`OkValue`); template , int> = 0> :target:`Result`(:ref:`ErrValue`&& err); template , int> = 0> :target:`Result`(const :ref:`ErrValue`& err); :target:`Result`(const :ref:`Result`& other); :target:`Result`(:ref:`Result`&& other); :target:`~Result`(); // methods :ref:`Result`& :target:`operator=`(const :ref:`Result`& other); :ref:`Result`& :target:`operator=`(:ref:`Result`&& other); bool :target:`hasValue`() const; bool :target:`hasError`() const; :target:`operator bool`() const; void :ref:`value`() const; E& :target:`error`(); const E& :target:`error`() const; E&& :target:`error`(); }; .. _details-class_e_e_1_1_result_3_01void_00_01_e_01_4: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ :ref:`Result ` specialization for operations that produce no value on success. Methods ------- .. index:: pair: function; value .. _doxid-class_e_e_1_1_result_3_01void_00_01_e_01_4_1a4a7a4b1115bcda6fac6e453bc4673ffd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void value() const Validates success; provided for symmetry with the non-void :ref:`Result `.