#include "simdjson/westmere/begin.h" namespace simdjson { namespace SIMDJSON_IMPLEMENTATION { simdjson_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; } if (auto err = dst->set_capacity(capacity)) return err; if (auto err = dst->set_max_depth(max_depth)) return err; return SUCCESS; } } // namespace SIMDJSON_IMPLEMENTATION } // namespace simdjson #include "simdjson/westmere/end.h"