is_state_completeļƒ

template<typename _Encoding, typename _State>
constexpr bool ztd::text::is_state_complete(_Encoding &__encoding, _State &__state) noexceptļƒ

Returns whether or not a state has completed any associated operations and has no more manipulations on the output to perform, even if the input source is empty.

Remark

If the state does not have a member function is_complete, then this will simply return true. Otherwise, it invokes __state.is_complete().

Parameters
  • __encoding ā€“ [in] The encoding for the state.

  • __state ā€“ [in] The state to check for completion.