Function accept

Synopsis

#include <include/cpptoml.h>

template <class Visitor, class... Args>
static void accept(const base &b, Visitor &&visitor, Args &&... args)

Description

No description yet.

Source

Lines 3250-3262 in include/cpptoml.h.

template <class Visitor, class... Args>
static void accept(const base& b, Visitor&& visitor, Args&&... args)
{
    if (auto v = b.as<T>())
    {
        visitor.visit(*v, std::forward<Args>(args)...);
    }
    else
    {
        value_accept<Ts...>::accept(b, std::forward<Visitor>(visitor),
                                    std::forward<Args>(args)...);
    }
}





Add Discussion as Guest

Log in