From Jason Turner

[range.single.view]

Diff to HTML by rtfpessoa

tmp/tmp33g88qnz/{from.md → to.md} RENAMED
@@ -18,10 +18,11 @@ namespace std::ranges {
18
 
19
  constexpr T* begin() noexcept;
20
  constexpr const T* begin() const noexcept;
21
  constexpr T* end() noexcept;
22
  constexpr const T* end() const noexcept;
 
23
  static constexpr size_t size() noexcept;
24
  constexpr T* data() noexcept;
25
  constexpr const T* data() const noexcept;
26
  };
27
 
@@ -63,10 +64,16 @@ constexpr T* end() noexcept;
63
  constexpr const T* end() const noexcept;
64
  ```
65
 
66
  *Effects:* Equivalent to: `return data() + 1;`
67
 
 
 
 
 
 
 
68
  ``` cpp
69
  static constexpr size_t size() noexcept;
70
  ```
71
 
72
  *Effects:* Equivalent to: `return 1;`
 
18
 
19
  constexpr T* begin() noexcept;
20
  constexpr const T* begin() const noexcept;
21
  constexpr T* end() noexcept;
22
  constexpr const T* end() const noexcept;
23
+ static constexpr bool empty() noexcept;
24
  static constexpr size_t size() noexcept;
25
  constexpr T* data() noexcept;
26
  constexpr const T* data() const noexcept;
27
  };
28
 
 
64
  constexpr const T* end() const noexcept;
65
  ```
66
 
67
  *Effects:* Equivalent to: `return data() + 1;`
68
 
69
+ ``` cpp
70
+ static constexpr bool empty() noexcept;
71
+ ```
72
+
73
+ *Effects:* Equivalent to: `return false;`
74
+
75
  ``` cpp
76
  static constexpr size_t size() noexcept;
77
  ```
78
 
79
  *Effects:* Equivalent to: `return 1;`