mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
erpt: update for 11.0.0 (closes #1218)
This commit is contained in:
parent
bba99d49da
commit
6da28f4a27
24 changed files with 438 additions and 146 deletions
|
@ -22,4 +22,19 @@ namespace ams {
|
|||
template<typename T>
|
||||
using Span = std::span<T>;
|
||||
|
||||
template<typename T>
|
||||
constexpr Span<T> MakeSpan(T *ptr, size_t size) { return { ptr, size }; }
|
||||
|
||||
template <typename T>
|
||||
constexpr Span<T> MakeSpan(T *begin, T *end) { return { begin, end }; }
|
||||
|
||||
template<typename T, size_t Size>
|
||||
constexpr Span<T> MakeSpan(T (&arr)[Size]) { return Span<T>(arr); }
|
||||
|
||||
template<typename T, size_t Size>
|
||||
constexpr Span<T> MakeSpan(std::array<T, Size> &arr) { return Span<T>(arr); }
|
||||
|
||||
template<typename T, size_t Size>
|
||||
constexpr Span<T> MakeSpan(const std::array<T, Size> &arr) { return Span<const T>(arr); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue