[libcxx-commits] [PATCH] D128149: [libc++][ranges] Implement `ranges::nth_element`.
Hui via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 6 10:01:25 PDT 2022
huixie90 accepted this revision.
huixie90 added inline comments.
================
Comment at: libcxx/include/__algorithm/nth_element.h:245
+template <class _RandomAccessIterator, class _Compare>
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17
+void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last,
----------------
question: why do we need `inline` in these function templates?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128149/new/
https://reviews.llvm.org/D128149
More information about the libcxx-commits
mailing list