[all-commits] [llvm/llvm-project] cb4174: [libc++] Refactor<__type_traits/is_swappable.h> (#...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Tue Jun 18 02:02:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb417401879ce70b441a999c4a30f7b64b8d426b
      https://github.com/llvm/llvm-project/commit/cb417401879ce70b441a999c4a30f7b64b8d426b
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M libcxx/include/__hash_table
    M libcxx/include/__memory/compressed_pair.h
    M libcxx/include/__memory/swap_allocator.h
    M libcxx/include/__memory/unique_ptr.h
    M libcxx/include/__split_buffer
    M libcxx/include/__tree
    M libcxx/include/__type_traits/is_swappable.h
    M libcxx/include/__utility/pair.h
    M libcxx/include/__utility/swap.h
    M libcxx/include/array
    M libcxx/include/deque
    M libcxx/include/experimental/propagate_const
    M libcxx/include/forward_list
    M libcxx/include/list
    M libcxx/include/map
    M libcxx/include/queue
    M libcxx/include/regex
    M libcxx/include/set
    M libcxx/include/stack
    M libcxx/include/string
    M libcxx/include/tuple
    M libcxx/include/unordered_map
    M libcxx/include/unordered_set
    M libcxx/include/vector
    M libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_swappable_include_order.pass.cpp
    M libcxx/test/support/nasty_containers.h
    M libcxx/test/support/poisoned_hash_helper.h

  Log Message:
  -----------
  [libc++] Refactor<__type_traits/is_swappable.h> (#86822)

This changes the `is_swappable` implementation to use variable templates
first and basing the class templates on that. This avoids instantiating
them when the `_v` versions are used, which are generally less resource
intensive.



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