From Jason Turner

[scoped.adaptor.operators]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpsg26n8u8/{from.md → to.md} +11 -4
tmp/tmpsg26n8u8/{from.md → to.md} RENAMED
@@ -4,14 +4,21 @@
4
  template <class OuterA1, class OuterA2, class... InnerAllocs>
5
  bool operator==(const scoped_allocator_adaptor<OuterA1, InnerAllocs...>& a,
6
  const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& b) noexcept;
7
  ```
8
 
9
- *Returns:* `a.outer_allocator() == b.outer_allocator()` if
10
- `sizeof...(InnerAllocs)` is zero; otherwise,
11
- `a.outer_allocator() == b.outer_allocator()` `&&`
12
- `a.inner_allocator() == b.inner_allocator()`.
 
 
 
 
 
 
 
13
 
14
  ``` cpp
15
  template <class OuterA1, class OuterA2, class... InnerAllocs>
16
  bool operator!=(const scoped_allocator_adaptor<OuterA1, InnerAllocs...>& a,
17
  const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& b) noexcept;
 
4
  template <class OuterA1, class OuterA2, class... InnerAllocs>
5
  bool operator==(const scoped_allocator_adaptor<OuterA1, InnerAllocs...>& a,
6
  const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& b) noexcept;
7
  ```
8
 
9
+ *Returns:* If `sizeof...(InnerAllocs)` is zero,
10
+
11
+ ``` cpp
12
+ a.outer_allocator() == b.outer_allocator()
13
+ ```
14
+
15
+ otherwise
16
+
17
+ ``` cpp
18
+ a.outer_allocator() == b.outer_allocator() && a.inner_allocator() == b.inner_allocator()
19
+ ```
20
 
21
  ``` cpp
22
  template <class OuterA1, class OuterA2, class... InnerAllocs>
23
  bool operator!=(const scoped_allocator_adaptor<OuterA1, InnerAllocs...>& a,
24
  const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& b) noexcept;