//===----------------------------------------------------------------------===// // // 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 scoped_allocator_adaptor // typedef see below inner_allocator_type; #include #include #include "allocators.h" int main() { #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES static_assert((std::is_same< std::scoped_allocator_adaptor>::inner_allocator_type, std::scoped_allocator_adaptor>>::value), ""); static_assert((std::is_same< std::scoped_allocator_adaptor, A2>::inner_allocator_type, std::scoped_allocator_adaptor>>::value), ""); static_assert((std::is_same< std::scoped_allocator_adaptor, A2, A3>::inner_allocator_type, std::scoped_allocator_adaptor, A3>>::value), ""); #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES }