From Jason Turner

[bitwise.operations.not]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzse343hk/{from.md → to.md} +30 -0
tmp/tmpzse343hk/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Class template `bit_not` <a id="bitwise.operations.not">[[bitwise.operations.not]]</a>
2
+
3
+ ``` cpp
4
+ template <class T = void> struct bit_not {
5
+ constexpr T operator()(const T& x) const;
6
+ };
7
+ ```
8
+
9
+ ``` cpp
10
+ constexpr T operator()(const T& x) const;
11
+ ```
12
+
13
+ *Returns:* `~x`.
14
+
15
+ ``` cpp
16
+ template <> struct bit_not<void> {
17
+ template <class T> constexpr auto operator()(T&& t) const
18
+ -> decltype(~std::forward<T>(t));
19
+
20
+ using is_transparent = unspecified;
21
+ };
22
+ ```
23
+
24
+ ``` cpp
25
+ template <class T> constexpr auto operator()(T&&) const
26
+ -> decltype(~std::forward<T>(t));
27
+ ```
28
+
29
+ *Returns:* `~std::forward<T>(t)`.
30
+