enumerate on itr_offset
parent
f3c3a3bc4a
commit
cf27247eb4
|
@ -91,6 +91,12 @@ namespace blt
|
|||
return enumerator{container.begin(), container.end()};
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline auto enumerate(T&& container)
|
||||
{
|
||||
return enumerator{container.begin(), container.end()};
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
struct range
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue