History log of /llvm-project-15.0.7/libcxx/include/algorithm (Results 176 – 200 of 269)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8f27eef2 20-Sep-2017 Marshall Clow <[email protected]>

Mark the __eval methods on independent_bits_engine (and __independent_bits_engine) as const, since they make no changes to the object. NFC.

llvm-svn: 313789


# 5beb2c3a 20-Sep-2017 Marshall Clow <[email protected]>

Fix a bit of UB in __independent_bits_engine. Fixes PR#34663

llvm-svn: 313776


Revision tags: llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4
# a763b36f 28-Aug-2017 Marshall Clow <[email protected]>

Fix PR31166: std::inplace_merge seems to be unstable. Thanks to Jan Wilken Dörrie for the suggested fix.

llvm-svn: 311952


Revision tags: llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2, llvmorg-5.0.0-rc1
# 316a3e57 14-Jul-2017 Shoaib Meenai <[email protected]>

[libc++] Clean up cl warning 4231 disabling

Once upon a time, extern templates used to be a Microsoft extension, so
cl would warn about their usage, and libc++ suppressed that warning.
They've long

[libc++] Clean up cl warning 4231 disabling

Once upon a time, extern templates used to be a Microsoft extension, so
cl would warn about their usage, and libc++ suppressed that warning.
They've long since been standardized, so the warning is defunct. (libc++
also doesn't currently support building with cl anyway.)

llvm-svn: 307997

show more ...


Revision tags: llvmorg-4.0.1, llvmorg-4.0.1-rc3
# a016efb1 31-May-2017 Eric Fiselier <[email protected]>

[Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

Summary:
This patch improves how libc++ handles min/max macros within the headers. Previously libc++ would undef them an

[Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

Summary:
This patch improves how libc++ handles min/max macros within the headers. Previously libc++ would undef them and emit a warning.
This patch changes libc++ to use `#pragma push_macro` to save the macro before undefining it, and `#pragma pop_macro` to restore the macros and the end of the header.

Reviewers: mclow.lists, bcraig, compnerd, EricWF

Reviewed By: EricWF

Subscribers: cfe-commits, krytarowski

Differential Revision: https://reviews.llvm.org/D33080

llvm-svn: 304357

show more ...


# 89918caa 31-May-2017 Eric Fiselier <[email protected]>

Remove uses of _UI because Windows is evil and tchar.h #define's it

llvm-svn: 304348


Revision tags: llvmorg-4.0.1-rc2
# 5b7c98e5 25-May-2017 Marshall Clow <[email protected]>

Last commit included some extra constexpr; remove them

llvm-svn: 303862


# 1d02996d 25-May-2017 Marshall Clow <[email protected]>

Make for_each_n only avaliable on C++17

llvm-svn: 303856


# d5c65ffa 25-May-2017 Marshall Clow <[email protected]>

Add non-parallel version of for_each_n (+tests) from the Parallelism TS

llvm-svn: 303833


# 80f8cfb3 10-May-2017 Eric Fiselier <[email protected]>

Don't interfere with the __builtin_foo namespace under MSVC

This patch follows up on feedback received in the review for
D32988. Specifically that libc++ should not mess with the
__builtin namespace

Don't interfere with the __builtin_foo namespace under MSVC

This patch follows up on feedback received in the review for
D32988. Specifically that libc++ should not mess with the
__builtin namespace, and that libc++ should use __popcnt to implement
__pop_count under MSVC.

llvm-svn: 302731

show more ...


# 5d50aa32 10-May-2017 Eric Fiselier <[email protected]>

[libc++] Refactor Windows support headers.

Summary:
This patch refactors and tries to remove as much of the Windows support headers as possible. This is needed because they currently introduce super

[libc++] Refactor Windows support headers.

Summary:
This patch refactors and tries to remove as much of the Windows support headers as possible. This is needed because they currently introduce super weird include cycles and dependencies between STL and libc headers.

The changes in this patch are:

* remove `support/win32/support.h` completely. The required parts have either been moved into `support/win32/msvc_support.h` (for `MSVC` only helpers not needed by Clang), or directly into their respective `foo.h` headers.

* Combine `locale_win32.h` and `locale_mgmt_win32.h` into a single headers, this header should only be included within `__locale` or `locale` to avoid include cycles.

* Remove the unneeded parts of `limits_win32.h` and re-name it to `limits_msvc_win32.h` since it's only needed by Clang.

I've tested this patch using Clang on Windows, but I suspect it might technically regress our non-existent support for MSVC. Is somebody able to double check?

This refactor is needed to support upcoming fixes to `<locale>` on Windows.



Reviewers: bcraig, rmaprath, compnerd, EricWF

Reviewed By: EricWF

Subscribers: majnemer, cfe-commits

Differential Revision: https://reviews.llvm.org/D32988

llvm-svn: 302727

show more ...


Revision tags: llvmorg-4.0.1-rc1
# ddda456a 18-Apr-2017 Eric Fiselier <[email protected]>

Cleanup _LIBCPP_HAS_NO_<c++11-feature> in algorithm

llvm-svn: 300625


# 66f1ec46 03-Apr-2017 Eric Fiselier <[email protected]>

Fix C++17 dylib build

llvm-svn: 299401


# 0f37a410 23-Mar-2017 Marshall Clow <[email protected]>

Remove random_shuffle in C++17. Please use shuffle instead. If you have to, you cant get it back by defining _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE before including any libc++ headers.

llvm-sv

Remove random_shuffle in C++17. Please use shuffle instead. If you have to, you cant get it back by defining _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE before including any libc++ headers.

llvm-svn: 298597

show more ...


Revision tags: llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1
# 5741d86d 07-Jan-2017 Eric Fiselier <[email protected]>

Replace identifiers called `__out` because Windows.h #defines it.

Windows is greedy and it defines the identifier `__out` as a macro.
This patch renames all conflicting libc++ identifiers in order
t

Replace identifiers called `__out` because Windows.h #defines it.

Windows is greedy and it defines the identifier `__out` as a macro.
This patch renames all conflicting libc++ identifiers in order
to correctly work on Windows.

llvm-svn: 291345

show more ...


# 14bd0bf0 28-Dec-2016 Eric Fiselier <[email protected]>

Fix __wrap_iter in debug mode and apply _NOEXCEPT_DEBUG to it

llvm-svn: 290654


# fd838227 23-Dec-2016 Eric Fiselier <[email protected]>

Fix unused parameters and variables

llvm-svn: 290459


Revision tags: llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1
# b9775795 29-Nov-2016 Aditya Kumar <[email protected]>

[libcxx] remove unused code

The macro _LIBCPP_UNROLL_LOOPS isn't used anywhere
so the code was dead.

Differential Revision: https://reviews.llvm.org/D26991

llvm-svn: 288143


# 1c7fe126 14-Nov-2016 Marshall Clow <[email protected]>

Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted last week in Issaquah

llvm-svn: 286858


# e7154709 28-Aug-2016 Eric Fiselier <[email protected]>

Implement C++17 std::sample.

This patch implements the std::sample function added to C++17 from LFTS. It
also removes the std::experimental::sample implementation which now forwards
to std::sample.

Implement C++17 std::sample.

This patch implements the std::sample function added to C++17 from LFTS. It
also removes the std::experimental::sample implementation which now forwards
to std::sample.

llvm-svn: 279948

show more ...


# 331fb804 25-Aug-2016 Aditya Kumar <[email protected]>

Remove trailing WS [NFC]

llvm-svn: 279731


Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2, llvmorg-3.9.0-rc1
# 19b4035f 26-Jul-2016 Marshall Clow <[email protected]>

Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS.

llvm-svn: 276751


# 331d2159 19-Jul-2016 Eric Fiselier <[email protected]>

Add heterogeneous comparator support for __debug_less. Fixes PR17147.

llvm-svn: 276059


Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1
# f07dd8d0 21-Apr-2016 Eric Fiselier <[email protected]>

Add is_swappable/is_nothrow_swappable traits

llvm-svn: 267079


# b10079e9 04-Apr-2016 Marshall Clow <[email protected]>

Remove unused internal routines. No functional change

llvm-svn: 265363


1234567891011