Function clone

Synopsis

#include <include/cpptoml.h>

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

Description

No description yet.

Source

Lines 1719-1726 in include/cpptoml.h. Line 779 in include/cpptoml.h.

inline std::shared_ptr<base> array::clone() const
{
    auto result = make_array();
    result->reserve(values_.size());
    for (const auto& ptr : values_)
        result->values_.push_back(ptr->clone());
    return result;
}





Add Discussion as Guest

Log in