iterator: add make_infix overload for arrays

This commit is contained in:
Danny Robson 2018-05-14 14:35:54 +10:00
parent fc58ec8e0f
commit 073b41da42

View File

@ -154,7 +154,15 @@ namespace util {
make_infix (const ContainerT &_container, const CharT *_delimiter = ", ")
{
return detail::infix_t<ContainerT,CharT> { _container, _delimiter };
};
}
template <typename ValueT, size_t CountV>
auto
make_infix (const ValueT (&val)[CountV])
{
return make_infix (util::view {val});
}
///////////////////////////////////////////////////////////////////////////