@@ -10,6 +10,15 @@ NOTE: https://wg21.link/P2714[P2714] added the ability (in C\\++26) to use a
1010non-type template parameter for the bound function; this works for function
1111pointers in C++17, and also for lambda expressions in C++20 and beyond.
1212
13+ === `dereference`
14+
15+ `dereference` is a function object like
16+ https://en.cppreference.com/w/cpp/utility/functional/negate.html[`std::negate`],
17+ except it calls (unary) `operator*` instead of `operator-`.
18+
19+ It also has a specialization for `void` which is _transparent_ like that of
20+ https://en.cppreference.com/w/cpp/utility/functional/negate_void.html[`std::negate`].
21+
1322=== `safe_identity`
1423
1524`safe_identity` is a function object (of type `safe_identity_t`) similar
@@ -34,6 +43,16 @@ NOTE: In standard usage, the type is `std::identity` and we must instantiate it
3443to use it; in `stdx`, the type is `safe_identity_t` and `safe_identity` is a
3544`constexpr inline` variable of that type.
3645
46+ === `unary_plus`
47+
48+ `unary_plus` is a function object like
49+ https://en.cppreference.com/w/cpp/utility/functional/negate.html[`std::negate`],
50+ except it calls (unary) `operator+` instead of `operator-`.
51+
52+ It also has a specialization for `void` which is _transparent_ like that of
53+ https://en.cppreference.com/w/cpp/utility/functional/negate_void.html[`std::negate`].
54+ >>>>>>> 7a78082 (:sparkles: Add `dereference`)
55+
3756=== `with_result_of`
3857
3958`with_result_of` is a class that can be used for lazy evaluation.
@@ -59,11 +78,3 @@ v.emplace(0, stdx::with_result_of{make_S}); // this constructs S in-place thanks
5978`with_result_of` can help to achieve in-place construction, effectively by deferring
6079evaluation of function arguments.
6180
62- === `unary_plus`
63-
64- `unary_plus` is a function object like
65- https://en.cppreference.com/w/cpp/utility/functional/negate.html[`std::negate`],
66- except it calls (unary) `operator+` instead of `operator-`.
67-
68- It also has a specialization for `void` which is _transparent_ like that of
69- https://en.cppreference.com/w/cpp/utility/functional/negate_void.html[`std::negate`].
0 commit comments