aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-01-04 17:21:22 -0800
committerChris Robinson <[email protected]>2022-01-04 19:27:29 -0800
commit7ac336b078cae9f96f1ee135a55a0250397b9112 (patch)
treea847c47aa11c01db89c626307c5c31eb8f337a57
parentad3095a03d6c8c493c3e434d654b172c9e2ec40d (diff)
Remove a couple unnecessary overloads
-rw-r--r--common/alspan.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/common/alspan.h b/common/alspan.h
index f2c42b16..4a0e0430 100644
--- a/common/alspan.h
+++ b/common/alspan.h
@@ -10,21 +10,13 @@
namespace al {
template<typename T>
-constexpr auto size(T &cont) noexcept(noexcept(cont.size())) -> decltype(cont.size())
-{ return cont.size(); }
-
-template<typename T>
constexpr auto size(const T &cont) noexcept(noexcept(cont.size())) -> decltype(cont.size())
{ return cont.size(); }
template<typename T, size_t N>
-constexpr size_t size(T (&)[N]) noexcept
+constexpr size_t size(const T (&)[N]) noexcept
{ return N; }
-template<typename T>
-constexpr size_t size(std::initializer_list<T> list) noexcept
-{ return list.size(); }
-
template<typename T>
constexpr auto data(T &cont) noexcept(noexcept(cont.data())) -> decltype(cont.data())