aboutsummaryrefslogtreecommitdiff
path: root/absl/functional/any_invocable_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove ABSL_HARDENING_ASSERT in AnyInvocable to avoid performance impact in ↵Abseil Team2023-05-111-1/+1
| | | | | | | optimized builds PiperOrigin-RevId: 531301442 Change-Id: Ib5a67f827bf89a66a0a8d24d3191f278566af6c8
* std::shared_ptr<T>::unique() is deprecated in C++17 and removed in C++20.Abseil Team2023-02-161-3/+3
| | | | | | | Change to checking for use_count() >/== 1. PiperOrigin-RevId: 510125744 Change-Id: I572cca18c3f827f5d3eefb2ec19a1a014c0090ae
* Detects accidental multiple invocations of ↵Abseil Team2022-10-111-10/+39
| | | | | | | AnyInvocable<R(...)&&>::operator()&& by producing an error in debug mode, and clarifies that the behavior is undefined in the general case. PiperOrigin-RevId: 480392976 Change-Id: I2d4c6f213fa7c8747f125c9735272a8e47b9214b
* any_invocable_test: Re-enable the two conversion tests that used to fail ↵Dino Radakovic2022-07-151-6/+0
| | | | | | | under MSVC PiperOrigin-RevId: 461238101 Change-Id: Id3edac104ecd9edd9daf8012894a62692bd9569f
* Release absl::AnyInvocableDino Radakovic2022-06-161-0/+1696
AnyInvocable is a C++11 compatible equivalent of the C++23 [std::move_only_function](https://en.cppreference.com/w/cpp/utility/functional/move_only_function/move_only_function). Although this implementation matches an intermediate draft revision of the standard (http://wg21.link/p0288r5), it is neither a standard tracking type nor a seamless backfill type. PiperOrigin-RevId: 455494585 Change-Id: If01565f8eecc78eee38fb794ef142b32b31abc7c