template struct mrpt::containers::ValueKeyCommentPair

Storage for value-comment pairs, with the comment associated to the key, not the value.

See examples in mrpt::containers::yaml.

[New in MRPT 2.1.0]

See also:

mrpt::containers::yaml, vkcp

#include <mrpt/containers/ValueCommentPair.h>

template <typename T>
struct ValueKeyCommentPair

    const std::string& keyname;
    const T& value;
    const std::string& comment;
    const CommentPosition position;

    // construction

        const std::string& keyName,
        const T& v,
        const std::string& c,
        CommentPosition pos