Skip to content
Snippets Groups Projects
Commit cdd08790 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add EnumNames::name<template>()

parent 71acbca9
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,16 @@ namespace simox::meta
}
return values;
}
template<template<class...> class Temp = std::vector>
Temp<NameT> names() const
{
Temp<EnumT> values;
for (const auto& it : _names.right)
{
values.emplace_back(it.first);
}
return values;
}
template <typename E, typename N>
friend std::ostream& operator<<(std::ostream& os, const EnumNames<E, N>& rhs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment