[all-commits] [llvm/llvm-project] 617646: [libc++] Use __alloc_traits in <deque> whenever it...

Peng Liu via All-commits all-commits at lists.llvm.org
Wed Mar 19 09:23:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 617646ab8d148ab51e8b94ccc0a40af2fc6c3dcf
      https://github.com/llvm/llvm-project/commit/617646ab8d148ab51e8b94ccc0a40af2fc6c3dcf
  Author: Peng Liu <winner245 at hotmail.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M libcxx/include/deque

  Log Message:
  -----------
  [libc++] Use __alloc_traits in <deque> whenever it is available for consistency (#126595)

When an allocator-aware container already defines a member type alias
`__alloc_traits` for `std::allocator_traits<allocator_type>`, we should
consistently use `__alloc_traits`. Mixing the usage of both
`__alloc_traits` and `std::allocator_traits` can lead to inconsistencies
and confusion.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list