//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include <__cxx03/__tree> #include #include #include #include "test_macros.h" #include "min_allocator.h" void testKeyValueTrait() { { typedef int Tp; typedef std::__tree_key_value_types Traits; static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert(Traits::__is_map == false, ""); } { typedef std::pair Tp; typedef std::__tree_key_value_types Traits; static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert(Traits::__is_map == false, ""); } { typedef std::pair Tp; typedef std::__tree_key_value_types Traits; static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert(Traits::__is_map == false, ""); } { typedef std::__value_type Tp; typedef std::__tree_key_value_types Traits; static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same >::value), ""); static_assert((std::is_same >::value), ""); static_assert(Traits::__is_map == true, ""); } } int main(int, char**) { testKeyValueTrait(); return 0; }