Add string_view test case and modify deduction guides

This commit is contained in:
Casey Carter
2020-05-28 18:00:40 -07:00
parent 6c405a1b7f
commit c143a07f61
2 changed files with 22 additions and 4 deletions

View File

@ -740,11 +740,13 @@ 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,
class Element = std::remove_pointer_t<decltype(std::declval<Container&>().data())>>
span(Container&)->span<Element>;
template <class Container>
span(const Container&)->span<const typename Container::value_type>;
template <class Container,
class Element = std::remove_pointer_t<decltype(std::declval<const Container&>().data())>>
span(const Container&)->span<Element>;
#endif // ( defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201611L) )