Function get_array

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< array > get_array(const std::string &key) const

Description

Obtains an array for a given key.

Source

Lines 1397-1402 in include/cpptoml.h.

std::shared_ptr<array> get_array(const std::string& key) const
{
    if (!contains(key))
        return nullptr;
    return get(key)->as_array();
}





Add Discussion as Guest

Log in