Indicate that vectors are a contiguous sequence

This commit is contained in:
Florin Iucha 2020-05-27 16:13:21 -04:00
parent 51bf9cfacb
commit 6289e261ee

View File

@ -1718,6 +1718,9 @@ template <typename Container> struct is_contiguous : std::false_type {};
template <typename Char> template <typename Char>
struct is_contiguous<std::basic_string<Char>> : std::true_type {}; struct is_contiguous<std::basic_string<Char>> : std::true_type {};
template <typename Char>
struct is_contiguous<std::vector<Char>> : std::true_type {};
template <typename Char> template <typename Char>
struct is_contiguous<detail::buffer<Char>> : std::true_type {}; struct is_contiguous<detail::buffer<Char>> : std::true_type {};