Function get_table_qualified

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< table > get_table_qualified(const std::string &key) const

Description

Obtains a table for a given key, if possible. Will resolve "qualified keys".

Mentioned in

Source

Lines 1387-1392 in include/cpptoml.h.

std::shared_ptr<table> get_table_qualified(const std::string& key) const
{
    if (contains_qualified(key) && get_qualified(key)->is_table())
        return std::static_pointer_cast<table>(get_qualified(key));
    return nullptr;
}





Add Discussion as Guest

Log in