DAW JSON Link
Loading...
Searching...
No Matches
Namespaces | Functions
daw_json_iostream.h File Reference
#include "daw/json/impl/version.h"
#include "daw/json/daw_json_link.h"
#include <daw/daw_cpp_feature_check.h>
#include <daw/daw_enable_requires.h>
#include <daw/daw_traits.h>
#include <iostream>
#include <type_traits>

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_json_iostream.h}
 

Functions

template<typename Container DAW_ENABLEIF>
 DAW_REQUIRES (daw::json::json_details::is_container_opted_into_json_iostreams_v< Container >) std
 An opt in ostream interface for containers of types that have JSON mappings.
 
template<typename T DAW_ENABLEIF>
std::ostream & operator<< (std::ostream &os, T const &value)
 An opt in ostream interface for types that have JSON mappings.
 

Function Documentation

◆ DAW_REQUIRES()

template<typename Container DAW_ENABLEIF>
DAW_REQUIRES ( daw::json::json_details::is_container_opted_into_json_iostreams_v< Container >  )

An opt in ostream interface for containers of types that have JSON mappings.

Definition at line 61 of file daw_json_iostream.h.

◆ operator<<()

template<typename T DAW_ENABLEIF>
std::ostream & operator<< ( std::ostream &  os,
T const &  value 
)

An opt in ostream interface for types that have JSON mappings.

Definition at line 52 of file daw_json_iostream.h.