validate_transcode_resultļƒ

template<typename _Input, typename _DecodeState, typename _EncodeState, typename _Pivot>
class validate_transcode_result : public ztd::text::validate_pivotless_transcode_result<_Input, _DecodeState, _EncodeState>ļƒ

The result of a transcoding validation operations (e.g. from ztd_text_validate_transcodable_as).

Public Functions

template<typename _ArgInput, typename _ArgFromState, typename _ArgToState, typename _ArgPivot>
inline constexpr validate_transcode_result(_ArgInput &&__input, bool __is_valid, _ArgFromState &&__from_state, _ArgToState &&__to_state, _ArgPivot &&__pivot)ļƒ

Constructs a ztd::text::pivot_validate_result.

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

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

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

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

  • __pivot ā€“ [in] The pivot range to store.

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

_Pivot pivotļƒ

The range used to hold the intermediate pivot transcoding units.

::ztd::reference_wrapper<_DecodeState> from_stateļƒ

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

::ztd::reference_wrapper<_EncodeState> to_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.