Function clone

Synopsis

#include <include/cpptoml.h>

std::shared_ptr< base > clone() const override

Description

No description yet.

Source

Lines 1737-1743 in include/cpptoml.h. Line 1290 in include/cpptoml.h.

inline std::shared_ptr<base> table::clone() const
{
    auto result = make_table();
    for (const auto& pr : map_)
        result->insert(pr.first, pr.second->clone());
    return result;
}





Add Discussion as Guest

Log in