Function get

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< base > get(const std::string &key) const

Description

Obtains the base for a given key.

Exceptions

std::out_of_range - if the key does not exist

Source

Lines 1354-1357 in include/cpptoml.h.

std::shared_ptr<base> get(const std::string& key) const
{
    return map_.at(key);
}





Add Discussion as Guest

Log in