template struct mrpt::containers::ValueCommentPair

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

[New in MRPT 2.1.0]

See also:

mrpt::containers::yaml, vcp, vkcp

#include <mrpt/containers/ValueCommentPair.h>

template <typename T>
struct ValueCommentPair
{
    //
fields

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

    // construction

    ValueCommentPair(
        const T& v,
        const std::string& c,
        CommentPosition pos
        );
};