Function as_table

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< table > as_table()

Description

Converts the TOML element into a table.

Source

Lines 524-529 in include/cpptoml.h.

std::shared_ptr<table> as_table()
{
    if (is_table())
        return std::static_pointer_cast<table>(shared_from_this());
    return nullptr;
}





Add Discussion as Guest

Log in