Function as_table_array

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< table_array > as_table_array()

Description

Converts the TOML element into a table array.

Source

Lines 559-564 in include/cpptoml.h.

std::shared_ptr<table_array> as_table_array()
{
    if (is_table_array())
        return std::static_pointer_cast<table_array>(shared_from_this());
    return nullptr;
}





Add Discussion as Guest

Log in