typedefs.cc: Check for allocator_type and value_type.

2011-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
	for allocator_type and value_type.

From-SVN: r174953
This commit is contained in:
Jonathan Wakely 2011-06-11 13:49:17 +00:00 committed by Jonathan Wakely
parent 39e2db00da
commit b6a1daaa77
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/20_util/allocator_traits/requirements/typedefs.cc: Check
for allocator_type and value_type.
2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/30_threads/packaged_task/uses_allocator.cc: New.

View File

@ -29,6 +29,8 @@ void test01()
{
// Check for required typedefs
typedef std::allocator_traits<T> test_type;
typedef typename test_type::allocator_type allocator_type;
typedef typename test_type::value_type value_type;
typedef typename test_type::pointer pointer;
typedef typename test_type::const_pointer const_pointer;
typedef typename test_type::void_pointer void_pointer;