blob: 0a28ae3d9a60c2231e0b118c33ebd58a77a1282d [file] [log] [blame]
#include <algorithm>
#include "leaf_data_type.hpp"
yang::Enum createEnum(const std::initializer_list<const char*>& list)
{
std::set<enum_> enums;
std::transform(list.begin(), list.end(), std::inserter(enums, enums.end()), [](const auto& value) {
return enum_{value};
});
return yang::Enum(std::move(enums));
}