Function as_array
Synopsis
#include <include/cpptoml.h>
std::shared_ptr< array > as_array()
Description
Converts the TOML element to an array.
Source
Lines 541-546 in include/cpptoml.h.
std::shared_ptr<array> as_array()
{
if (is_array())
return std::static_pointer_cast<array>(shared_from_this());
return nullptr;
}