From Jason Turner

[flat.map.cons.alloc]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpplfx423x/{from.md → to.md} +79 -0
tmp/tmpplfx423x/{from.md → to.md} RENAMED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors with allocators <a id="flat.map.cons.alloc">[[flat.map.cons.alloc]]</a>
2
+
3
+ The constructors in this subclause shall not participate in overload
4
+ resolution unless `uses_allocator_v<key_container_type, Alloc>` is
5
+ `true` and `uses_allocator_v<mapped_container_type, Alloc>` is `true`.
6
+
7
+ ``` cpp
8
+ template<class Alloc>
9
+ constexpr flat_map(const key_container_type& key_cont, const mapped_container_type& mapped_cont,
10
+ const Alloc& a);
11
+ template<class Alloc>
12
+ constexpr flat_map(const key_container_type& key_cont, const mapped_container_type& mapped_cont,
13
+ const key_compare& comp, const Alloc& a);
14
+ ```
15
+
16
+ *Effects:* Equivalent to `flat_map(key_cont, mapped_cont)` and
17
+ `flat_map(key_cont, mapped_cont, comp)`, respectively, except that
18
+ *`c`*`.keys` and *`c`*`.values` are constructed with uses-allocator
19
+ construction [[allocator.uses.construction]].
20
+
21
+ *Complexity:* Same as `flat_map(key_cont, mapped_cont)` and
22
+ `flat_map(key_cont, mapped_cont, comp)`, respectively.
23
+
24
+ ``` cpp
25
+ template<class Alloc>
26
+ constexpr flat_map(sorted_unique_t, const key_container_type& key_cont,
27
+ const mapped_container_type& mapped_cont, const Alloc& a);
28
+ template<class Alloc>
29
+ constexpr flat_map(sorted_unique_t, const key_container_type& key_cont,
30
+ const mapped_container_type& mapped_cont, const key_compare& comp,
31
+ const Alloc& a);
32
+ ```
33
+
34
+ *Effects:* Equivalent to
35
+ `flat_map(sorted_unique, key_cont, mapped_cont)` and
36
+ `flat_map(sorted_unique, key_cont, mapped_cont, comp)`, respectively,
37
+ except that *`c`*`.keys` and *`c`*`.values` are constructed with
38
+ uses-allocator construction [[allocator.uses.construction]].
39
+
40
+ *Complexity:* Linear.
41
+
42
+ ``` cpp
43
+ template<class Alloc>
44
+ constexpr explicit flat_map(const Alloc& a);
45
+ template<class Alloc>
46
+ constexpr flat_map(const key_compare& comp, const Alloc& a);
47
+ template<class Alloc>
48
+ constexpr flat_map(const flat_map&, const Alloc& a);
49
+ template<class Alloc>
50
+ constexpr flat_map(flat_map&&, const Alloc& a);
51
+ template<class InputIterator, class Alloc>
52
+ constexpr flat_map(InputIterator first, InputIterator last, const Alloc& a);
53
+ template<class InputIterator, class Alloc>
54
+ constexpr flat_map(InputIterator first, InputIterator last, const key_compare& comp,
55
+ const Alloc& a);
56
+ template<class InputIterator, class Alloc>
57
+ constexpr flat_map(sorted_unique_t, InputIterator first, InputIterator last, const Alloc& a);
58
+ template<class InputIterator, class Alloc>
59
+ constexpr flat_map(sorted_unique_t, InputIterator first, InputIterator last,
60
+ const key_compare& comp, const Alloc& a);
61
+ template<container-compatible-range<value_type> R, class Alloc>
62
+ constexpr flat_map(from_range_t, R&& rg, const Alloc& a);
63
+ template<container-compatible-range<value_type> R, class Alloc>
64
+ constexpr flat_map(from_range_t, R&& rg, const key_compare& comp, const Alloc& a);
65
+ template<class Alloc>
66
+ constexpr flat_map(initializer_list<value_type> il, const Alloc& a);
67
+ template<class Alloc>
68
+ constexpr flat_map(initializer_list<value_type> il, const key_compare& comp, const Alloc& a);
69
+ template<class Alloc>
70
+ constexpr flat_map(sorted_unique_t, initializer_list<value_type> il, const Alloc& a);
71
+ template<class Alloc>
72
+ constexpr flat_map(sorted_unique_t, initializer_list<value_type> il,
73
+ const key_compare& comp, const Alloc& a);
74
+ ```
75
+
76
+ *Effects:* Equivalent to the corresponding non-allocator constructors
77
+ except that *`c`*`.keys` and *`c`*`.values` are constructed with
78
+ uses-allocator construction [[allocator.uses.construction]].
79
+