iterator: add make_infix overload for arrays
This commit is contained in:
parent
fc58ec8e0f
commit
073b41da42
10
iterator.hpp
10
iterator.hpp
@ -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});
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user