Function get_table_array

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< table_array > get_table_array(const std::string &key) const

Description

Obtains a table_array for a given key, if possible.

Mentioned in

Source

Lines 1417-1422 in include/cpptoml.h.

std::shared_ptr<table_array> get_table_array(const std::string& key) const
{
    if (!contains(key))
        return nullptr;
    return get(key)->as_table_array();
}





Add Discussion as Guest

Log in