[libcxx-commits] [libcxx] [libc++] Add containter_traits (prework for `std::flat_map`) (PR #109578)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Sep 22 08:35:56 PDT 2024


================
@@ -0,0 +1,28 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+#ifndef _LIBCPP___TYPE_TRAITS_CONTAINER_TRAITS_H
+#define _LIBCPP___TYPE_TRAITS_CONTAINER_TRAITS_H
+
+#include <__config>
+#include <__type_traits/integral_constant.h>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#  pragma GCC system_header
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+template <class _Tp>
+struct __container_traits {
+  using __emplacement_has_strong_exception_safety_guarantee = false_type;
----------------
frederick-vs-ja wrote:

Why is this a `bool_constant`? Is it expected to be used in `_And`/`_Or`?

https://github.com/llvm/llvm-project/pull/109578


More information about the libcxx-commits mailing list