//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template > // class list // { // public: // // // types: // typedef T value_type; // typedef Alloc allocator_type; // typedef typename allocator_type::reference reference; // typedef typename allocator_type::const_reference const_reference; // typedef typename allocator_type::pointer pointer; // typedef typename allocator_type::const_pointer const_pointer; #include #include #include "min_allocator.h" int main() { static_assert((std::is_same::value_type, int>::value), ""); static_assert((std::is_same::allocator_type, std::allocator >::value), ""); static_assert((std::is_same::reference, std::allocator::reference>::value), ""); static_assert((std::is_same::const_reference, std::allocator::const_reference>::value), ""); static_assert((std::is_same::pointer, std::allocator::pointer>::value), ""); static_assert((std::is_same::const_pointer, std::allocator::const_pointer>::value), ""); #if __cplusplus >= 201103L static_assert((std::is_same>::value_type, int>::value), ""); static_assert((std::is_same>::allocator_type, min_allocator >::value), ""); static_assert((std::is_same>::reference, int&>::value), ""); static_assert((std::is_same>::const_reference, const int&>::value), ""); static_assert((std::is_same>::pointer, min_pointer>::value), ""); static_assert((std::is_same>::const_pointer, min_pointer>::value), ""); #endif }