Function clone

Synopsis

#include <include/cpptoml.h>

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

Description

No description yet.

Source

Lines 1728-1735 in include/cpptoml.h. Line 1073 in include/cpptoml.h.

inline std::shared_ptr<base> table_array::clone() const
{
    auto result = make_table_array(is_inline());
    result->reserve(array_.size());
    for (const auto& ptr : array_)
        result->array_.push_back(ptr->clone()->as_table());
    return result;
}





Add Discussion as Guest

Log in