#include "simdjson.h" #include "westmere/implementation.h" #include "westmere/dom_parser_implementation.h" TARGET_HASWELL namespace simdjson { namespace westmere { WARN_UNUSED error_code implementation::create_dom_parser_implementation( size_t capacity, size_t max_depth, std::unique_ptr& dst ) const noexcept { dst.reset( new (std::nothrow) dom_parser_implementation() ); if (!dst) { return MEMALLOC; } dst->set_capacity(capacity); dst->set_max_depth(max_depth); return SUCCESS; } } // namespace westmere } // namespace simdjson UNTARGET_REGION