pass_handlerļƒ

The pass_handler does exactly what its name implies: it passes the error as generated by the encoding object through without touching it. Unlike ztd::text::assume_valid_handler, this one does not invoke undefined behavior because it does not meet the requirements for the ztd::text::is_ignorable_error_handler trait.

constexpr pass_handler_t ztd::text::pass_handler = {}ļƒ

An instance of pass_handler_t for ease of use.

class pass_handler_t : public __txt_detail::__pass_through_handler_with<false>ļƒ

An error handler that tells an encoding that it will pass through any errors, without doing any adjustment, correction or checking. Does not imply it is ignorable, unlike ztd::text::assume_valid_handler_t which can invoke UB if an error occurs.