From Jason Turner

[any]

Diff to HTML by rtfpessoa

tmp/tmphhr513qa/{from.md → to.md} RENAMED
@@ -430,12 +430,15 @@ template<class T>
430
  const T* any_cast(const any* operand) noexcept;
431
  template<class T>
432
  T* any_cast(any* operand) noexcept;
433
  ```
434
 
435
- *Returns:* If `operand != nullptr && operand->type() == typeid(T)`, a
436
- pointer to the object contained by `operand`; otherwise, `nullptr`.
 
 
 
437
 
438
  [*Example 2*:
439
 
440
  ``` cpp
441
  bool is_string(const any& operand) {
 
430
  const T* any_cast(const any* operand) noexcept;
431
  template<class T>
432
  T* any_cast(any* operand) noexcept;
433
  ```
434
 
435
+ *Mandates:* `is_void_v<T>` is `false`.
436
+
437
+ *Returns:* If `operand != nullptr && operand->type() == typeid(T)` is
438
+ `true`, a pointer to the object contained by `operand`; otherwise,
439
+ `nullptr`.
440
 
441
  [*Example 2*:
442
 
443
  ``` cpp
444
  bool is_string(const any& operand) {