![]()  | 
  
    Face Engine SDK
    5.17.0
    
   A face detection, recognition and tracking engine. 
   | 
 
A structure that encapsulates an action result enumeration. More...
#include <Result.h>
Public Types | |
| using | ErrorType = E | 
| Result value enumeration type.  | |
| using | Traits = ErrorTraits< E > | 
Public Member Functions | |
| Result (E error) noexcept | |
| Initializes result.  More... | |
| Result () noexcept | |
| Initializes result by default.  | |
| E | getError () const noexcept | 
| Gets actual result value.  More... | |
| bool | isError () const noexcept | 
| Checks for an error.  More... | |
| bool | isOk () const noexcept | 
| Checks for a success.  More... | |
| operator bool () const noexcept | |
| Checks for a success.  More... | |
| const char * | what () const noexcept | 
| Gets a textual description of the result.  More... | |
A structure that encapsulates an action result enumeration.
An enum should specify a result code. By default the result is in a special uninitialized state which should be interpreted as an error. Default success value shoud be defined to zero.
| enumeration | to wrap. | 
      
  | 
  inlineexplicitnoexcept | 
Initializes result.
| [in] | result | value to set. | 
      
  | 
  inlinenoexcept | 
Gets actual result value.
      
  | 
  inlinenoexcept | 
Checks for an error.
      
  | 
  inlinenoexcept | 
Checks for a success.
      
  | 
  inlinenoexcept | 
Checks for a success.
      
  | 
  inlinenoexcept | 
Gets a textual description of the result.