[*] why the hell were these made const

This commit is contained in:
Reece Wilson 2023-04-19 03:17:45 +01:00
parent bfd4069994
commit 99123bb094
2 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ namespace Aurora::RNG
}
template<typename T>
void NextFillRange(const T &container)
void NextFillRange(T &container)
{
NextFillArray(container.begin(), container.end() - container.begin());
}
@ -82,13 +82,13 @@ namespace Aurora::RNG
}
template<typename T>
inline T &NextVector(const AuList<T> &items)
inline T &NextVector(AuList<T> &items)
{
return NextArray(items.data(), items.size());
}
template<typename T>
inline T &NextRange(const T &items)
inline T &NextRange(T &items)
{
return NextIterator(items.begin(), items.end());
}

View File

@ -59,7 +59,7 @@ namespace Aurora::RNG
}
template<bool fast = true, typename T>
static auline void RngFillRange(const T &container)
static auline void RngFillRange(T &container)
{
RngFillArray<fast>(container.begin(), container.end() - container.begin());
}
@ -102,13 +102,13 @@ namespace Aurora::RNG
}
template<typename T>
static auline T &RngVector(const AuList<T> &items)
static auline T &RngVector(AuList<T> &items)
{
return RngArray(items.data(), items.size());
}
template<typename T>
static auline T &RngRange(const T &items)
static auline T &RngRange(T &items)
{
return RngArray(items.begin(), items.end() - items.begin());
}