diff options
Diffstat (limited to 'include/gsl')
-rw-r--r-- | include/gsl/span | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gsl/span b/include/gsl/span index 04d2d69..c7b45e9 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -740,6 +740,12 @@ span(std::array<Type, Size>&)->span<Type, Size>; template <class Type, std::size_t Size> span(const std::array<Type, Size>&)->span<const Type, Size>; +template <class Container> +span(Container&)->span<typename Container::value_type>; + +template <class Container> +span(const Container&)->span<const typename Container::value_type>; + #endif // ( defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L) ) #if defined(GSL_USE_STATIC_CONSTEXPR_WORKAROUND) |