From Jason Turner

[range.single]

Diff to HTML by rtfpessoa

tmp/tmpnqfwkt27/{from.md → to.md} RENAMED
@@ -39,10 +39,11 @@ namespace std::ranges {
39
 
40
  constexpr T* begin() noexcept;
41
  constexpr const T* begin() const noexcept;
42
  constexpr T* end() noexcept;
43
  constexpr const T* end() const noexcept;
 
44
  static constexpr size_t size() noexcept;
45
  constexpr T* data() noexcept;
46
  constexpr const T* data() const noexcept;
47
  };
48
 
@@ -84,10 +85,16 @@ constexpr T* end() noexcept;
84
  constexpr const T* end() const noexcept;
85
  ```
86
 
87
  *Effects:* Equivalent to: `return data() + 1;`
88
 
 
 
 
 
 
 
89
  ``` cpp
90
  static constexpr size_t size() noexcept;
91
  ```
92
 
93
  *Effects:* Equivalent to: `return 1;`
 
39
 
40
  constexpr T* begin() noexcept;
41
  constexpr const T* begin() const noexcept;
42
  constexpr T* end() noexcept;
43
  constexpr const T* end() const noexcept;
44
+ static constexpr bool empty() noexcept;
45
  static constexpr size_t size() noexcept;
46
  constexpr T* data() noexcept;
47
  constexpr const T* data() const noexcept;
48
  };
49
 
 
85
  constexpr const T* end() const noexcept;
86
  ```
87
 
88
  *Effects:* Equivalent to: `return data() + 1;`
89
 
90
+ ``` cpp
91
+ static constexpr bool empty() noexcept;
92
+ ```
93
+
94
+ *Effects:* Equivalent to: `return false;`
95
+
96
  ``` cpp
97
  static constexpr size_t size() noexcept;
98
  ```
99
 
100
  *Effects:* Equivalent to: `return 1;`