DAW JSON Link
Loading...
Searching...
No Matches
Namespaces | Functions
daw_to_json.h File Reference
#include "daw/json/impl/version.h"
#include "daw/json/concepts/daw_writable_output.h"
#include "daw/json/daw_to_json_fwd.h"
#include "daw/json/impl/daw_json_container_appender.h"
#include "daw/json/impl/daw_json_link_types_fwd.h"
#include "daw/json/impl/to_daw_json_string.h"
#include <daw/daw_enable_requires.h>
#include <daw/daw_span.h>
#include <daw/daw_string_view.h>
#include <daw/daw_traits.h>
#include <iterator>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  daw
 
namespace  daw::json
 string_writer grows its string with resize_and_overwrite, leaving the new bytes uninitialized, when the standard library has it. That skips zero filling memory that is overwritten right away, but the bytes past what was written are never initialized, which resize_and_overwrite's precondition does not allow. Define DAW_JSON_NO_LESS_SAFE_STRING_WRITER to grow with resize( ) instead
 
namespace  daw::json::anonymous_namespace{daw_to_json.h}
 

Functions

template<typename JsonClass , typename Value , typename WritableType , auto... PolicyFlags DAW_ENABLEIF2>
 daw::json::anonymous_namespace{daw_to_json.h}::DAW_REQUIRES (concepts::is_writable_output_type_v< daw::remove_cvref_t< WritableType > >) const expr daw
 
template<typename JsonClass , typename Value , auto... PolicyFlags>
DAW_CPP20_CX_ALLOC std::string daw::json::anonymous_namespace{daw_to_json.h}::to_json (Value const &value, options::output_flags_t< PolicyFlags... > flgs)
 
template<typename JsonElement , typename Container , auto... PolicyFlags>
DAW_CPP20_CX_ALLOC std::string daw::json::anonymous_namespace{daw_to_json.h}::to_json_array (Container const &c, options::output_flags_t< PolicyFlags... > flgs)