| 18925 | */ |
| 18926 | template <typename SAX> |
| 18927 | static bool sax_parse(detail::input_adapter&& i, SAX* sax, |
| 18928 | input_format_t format = input_format_t::json, |
| 18929 | const bool strict = true) |
| 18930 | { |
| 18931 | assert(sax); |
| 18932 | return format == input_format_t::json |
| 18933 | ? parser(std::move(i)).sax_parse(sax, strict) |
| 18934 | : detail::binary_reader<basic_json, SAX>(std::move(i)).sax_parse(format, sax, strict); |
| 18935 | } |
| 18936 | |
| 18937 | /*! |
| 18938 | @brief deserialize from an iterator range with contiguous storage |
no test coverage detected