Function operator<<

Summary

#include <src/c4/yml/node.hpp>

(1) NodeRef & operator<<(csubstr const &s)

(2) template <class T>
    NodeRef & operator<<(T const &v)

(3) template <class T>
    NodeRef & operator<<(Key< const T > const &v)

(4) template <class T>
    NodeRef & operator<<(Key< T > const &v)

Function overload

Synopsis

#include <src/c4/yml/node.hpp>

NodeRef & operator<<(csubstr const &s)

Description

No description yet.

Source

Lines 387-393 in src/c4/yml/node.hpp.

inline NodeRef& operator<< (csubstr const& s) // this overload is needed to prevent ambiguity (there's also << for writing a span to a stream)
{
    _apply_seed();
    write(this, s);
    RYML_ASSERT(get()->val() == s);
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
NodeRef & operator<<(T const &v)

Description

No description yet.

Source

Lines 395-401 in src/c4/yml/node.hpp.

template<class T>
inline NodeRef& operator<< (T const& v)
{
    _apply_seed();
    write(this, v);
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
NodeRef & operator<<(Key< const T > const &v)

Description

No description yet.

Source

Lines 403-409 in src/c4/yml/node.hpp.

template<class T>
inline NodeRef& operator<< (Key<const T> const& v)
{
    _apply_seed();
    set_key_serialized(v.k);
    return *this;
}

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
NodeRef & operator<<(Key< T > const &v)

Description

No description yet.

Source

Lines 411-417 in src/c4/yml/node.hpp.

template<class T>
inline NodeRef& operator<< (Key<T> const& v)
{
    _apply_seed();
    set_key_serialized(v.k);
    return *this;
}





Add Discussion as Guest

Log in