Skip to content

Commit a7c87b0

Browse files
committed
refactor conversion category customisation
Users are now meant to specialise conversion_category_of.
1 parent a6e9c7b commit a7c87b0

10 files changed

Lines changed: 800 additions & 203 deletions

File tree

doc/externals.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ struct bad_alloc {};
212212
/// @see https://en.cppreference.com/w/cpp/container/map
213213
struct map {};
214214

215+
/// !EXTERNAL!
216+
///
217+
/// @see https://en.cppreference.com/cpp/utility/variant/monostate
218+
struct monostate {};
219+
220+
/// !EXTERNAL!
221+
///
222+
/// @see https://en.cppreference.com/w/cpp/container/multimap
223+
struct multimap {};
224+
215225
/// !EXTERNAL!
216226
///
217227
/// @see https://en.cppreference.com/w/cpp/container/unordered_map

doc/pages/reference.adoc

Lines changed: 45 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ a| *Classes* +
3333
<<ref_value_ref>> +
3434
<<ref_value_stack>>
3535

36+
*Aliases* +
37+
<<ref_parser_for>> +
38+
<<ref_string_view>>
39+
3640
a| *Functions* +
3741
<<ref_get>> +
3842
<<ref_get_null_resource>> +
@@ -47,12 +51,7 @@ a| *Functions* +
4751
<<ref_value_to>> +
4852
<<ref_visit>>
4953

50-
*P0308R0* +
51-
<<ref_pilfer>> +
52-
<<ref_pilfered>> +
53-
<<ref_is_pilfer_constructible>>
54-
55-
| *Operators* +
54+
*Operators* +
5655
<<ref_operator_eq_eq>> +
5756
<<ref_operator_not_eq>> +
5857
<<ref_operator_gt>> +
@@ -61,37 +60,61 @@ a| *Functions* +
6160
<<ref_operator_lt_eq>> +
6261
<<ref_operator_lt_lt>> +
6362

64-
*Aliases* +
65-
<<ref_parser_for>> +
66-
<<ref_string_view>>
63+
| *Type Traits* +
64+
<<ref_boolean_category>> +
65+
<<ref_conversion_category_of>> +
66+
<<ref_described_class_category>> +
67+
<<ref_described_enum_category>> +
68+
<<ref_floating_point_category>> +
69+
<<ref_has_value_from>> +
70+
<<ref_has_value_to>> +
71+
<<ref_integer_category>> +
72+
<<ref_is_deallocate_trivial>> +
73+
<<ref_map_category>> +
74+
<<ref_null_category>> +
75+
<<ref_optional_category>> +
76+
<<ref_path_category>> +
77+
<<ref_result_for>> +
78+
<<ref_sequence_category>> +
79+
<<ref_string_category>> +
80+
<<ref_try_value_to_tag>> +
81+
<<ref_tuple_category>> +
82+
<<ref_value_from_tag>> +
83+
<<ref_value_to_tag>> +
84+
<<ref_variant_category>> +
85+
<<ref_unknown_category>>
6786

68-
*Constants* +
87+
| *Constants* +
6988
<<ref_array_kind>> +
7089
<<ref_condition>> +
90+
<<ref_conversion_category>> +
7191
<<ref_error>> +
7292
<<ref_kind>> +
7393
<<ref_number_precision>> +
7494
<<ref_object_kind>> +
7595
<<ref_string_kind>>
7696

77-
| *Type Traits* +
78-
<<ref_has_value_from>> +
79-
<<ref_has_value_to>> +
80-
<<ref_is_deallocate_trivial>> +
97+
*P0308R0* +
98+
<<ref_pilfer>> +
99+
<<ref_pilfered>> +
100+
<<ref_is_pilfer_constructible>>
101+
102+
4+h|Deprecated
103+
104+
a|
81105
<<ref_is_described_class>> +
82106
<<ref_is_described_enum>> +
83-
<<ref_is_map_like>> +
107+
<<ref_is_map_like>>
108+
a|
84109
<<ref_is_null_like>> +
85-
<<ref_is_optional_like>> +
110+
<<ref_is_optional_like>>
111+
a|
86112
<<ref_is_path_like>> +
87113
<<ref_is_sequence_like>> +
88-
<<ref_is_string_like>> +
114+
<<ref_is_string_like>>
115+
a|
89116
<<ref_is_tuple_like>> +
90-
<<ref_is_variant_like>> +
91-
<<ref_result_for>> +
92-
<<ref_try_value_to_tag>> +
93-
<<ref_value_from_tag>> +
94-
<<ref_value_to_tag>>
117+
<<ref_is_variant_like>>
95118

96119
|===
97120

0 commit comments

Comments
 (0)