| 1562 | |
| 1563 | template <typename A> |
| 1564 | static auto max_size_impl(int, const A& a) -> decltype(a.max_size()) { |
| 1565 | return a.max_size(); |
| 1566 | } |
| 1567 | static size_type max_size_impl(char, const Alloc&) { |
| 1568 | return (std::numeric_limits<size_type>::max)() / sizeof(value_type); |
| 1569 | } |