[all-commits] [llvm/llvm-project] 41e766: [libc++] Implement `operator<=>` for `thread::id`
Adrian Vogelsgesang via All-commits
all-commits at lists.llvm.org
Sat Aug 13 17:31:19 PDT 2022
Author: Adrian Vogelsgesang <avogelsgesang at tableau.com>
Date: 2022-08-13 (Sat, 13 Aug 2022)
[libc++] Implement `operator<=>` for `thread::id`
The new operator<=> is mapped onto the existing functions
__libcpp_thread_id_equal and __libcpp_thread_id_less. Introducing a
new __libcpp_thread_id_compare_three_way might lead to more efficient
code. Given that we can still introduce __libcpp_thread_id_compare_three_way
later, for this commit I opted to not break ABI. If requested, I will
add __libcpp_thread_id_compare_three_way in a follow-up commit.
Implements part of P1614R2 "The Mothership has Landed"
Differential Revision: https://reviews.llvm.org/D131362
More information about the All-commits