| 1 | /* |
|---|---|
| 2 | Copyright 2020 Glen Joseph Fernandes |
| 3 | (glenjofe@gmail.com) |
| 4 | |
| 5 | Distributed under the Boost Software License, Version 1.0. |
| 6 | (http://www.boost.org/LICENSE_1_0.txt) |
| 7 | */ |
| 8 | #include <boost/core/allocator_access.hpp> |
| 9 | #include <boost/core/lightweight_test_trait.hpp> |
| 10 | #include <boost/core/detail/is_same.hpp> |
| 11 | |
| 12 | template<class T> |
| 13 | struct A { |
| 14 | typedef T value_type; |
| 15 | }; |
| 16 | |
| 17 | int main() |
| 18 | { |
| 19 | BOOST_TEST_TRAIT_TRUE((boost::core::detail::is_same<int, |
| 20 | boost::allocator_value_type<A<int> >::type>)); |
| 21 | return boost::report_errors(); |
| 22 | } |
| 23 |
