validate_resultļƒ

template<typename _Input, typename _State>
class validate_result : public ztd::text::stateless_validate_result<_Input>ļƒ

The result of validation operations (such as ztd_text_validate_decodable_as and ztd_text_validate_encodable_as).

Public Functions

template<typename _ArgInput, typename _ArgState>
inline constexpr validate_result(_ArgInput &&__input, bool __is_valid, _ArgState &&__state)ļƒ

Constructs a ztd::text::validate_result, defaulting the error code to ztd::text::encoding_error::ok if not provided.

Parameters:
  • __input ā€“ [in] The input range to store.

  • __is_valid ā€“ [in] Whether or not the validation succeeded.

  • __state ā€“ [in] The state related to the encoding that was used to do validation.

inline explicit constexpr operator bool() const noexceptļƒ

A conversion for use in if statements and conditional operators.

Returns:

Whether or not the result is valid or not.

Public Members

::ztd::reference_wrapper<_State> stateļƒ

A reference to the state of the associated Encoding used for validating the input.

_Input inputļƒ

The reconstructed input_view object, with its .begin() incremented by the number of code units successfully read (can be identical to .begin() on original range on failure).

bool validļƒ

Whether or not the specified input is valid or not.