diff options
author | Jordan Maples <jomaples@microsoft.com> | 2020-05-29 00:04:31 +0300 |
---|---|---|
committer | Jordan Maples <jomaples@microsoft.com> | 2020-05-29 00:04:31 +0300 |
commit | 689abc29828b6ad0aaf4fd555e5d979e42186fca (patch) | |
tree | e5cdb92b726ec4dac6863d447926c5fc30b3b7e6 /include/gsl/span | |
parent | 0dbdf322facde270713f549bdb669eb29a6ba1e6 (diff) |
adding container ctad
Diffstat (limited to 'include/gsl/span')
-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) |