From Jason Turner

[any.nonmembers]

Diff to HTML by rtfpessoa

tmp/tmpzjt_nmhg/{from.md → to.md} RENAMED
@@ -78,12 +78,15 @@ template<class T>
78
  const T* any_cast(const any* operand) noexcept;
79
  template<class T>
80
  T* any_cast(any* operand) noexcept;
81
  ```
82
 
83
- *Returns:* If `operand != nullptr && operand->type() == typeid(T)`, a
84
- pointer to the object contained by `operand`; otherwise, `nullptr`.
 
 
 
85
 
86
  [*Example 2*:
87
 
88
  ``` cpp
89
  bool is_string(const any& operand) {
 
78
  const T* any_cast(const any* operand) noexcept;
79
  template<class T>
80
  T* any_cast(any* operand) noexcept;
81
  ```
82
 
83
+ *Mandates:* `is_void_v<T>` is `false`.
84
+
85
+ *Returns:* If `operand != nullptr && operand->type() == typeid(T)` is
86
+ `true`, a pointer to the object contained by `operand`; otherwise,
87
+ `nullptr`.
88
 
89
  [*Example 2*:
90
 
91
  ``` cpp
92
  bool is_string(const any& operand) {