1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // template <class T1, class T2> struct pair
18 // The destructor of pair shall be a trivial destructor
19 // if (is_trivially_destructible_v<T1> && is_trivially_destructible_v<T2>) is true.
23 #include <type_traits>
27 #include "test_macros.h"
31 static_assert((std::is_trivially_destructible
<
32 std::pair
<int, float> >::value
), "");
33 static_assert((!std::is_trivially_destructible
<
34 std::pair
<int, std::string
> >::value
), "");