mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
adding container ctad
This commit is contained in:
parent
0dbdf322fa
commit
689abc2982
@ -740,6 +740,12 @@ span(std::array<Type, Size>&)->span<Type, Size>;
|
|||||||
template <class Type, std::size_t Size>
|
template <class Type, std::size_t Size>
|
||||||
span(const std::array<Type, Size>&)->span<const Type, 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) )
|
#endif // ( defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L) )
|
||||||
|
|
||||||
#if defined(GSL_USE_STATIC_CONSTEXPR_WORKAROUND)
|
#if defined(GSL_USE_STATIC_CONSTEXPR_WORKAROUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user