Skip to content

Commit 0fa7fee

Browse files
committed
Index: Sort type traits
Sort type traits so the order matches cppreference. Add missing is_aggregate trait. Fix callable trait names and add invoke_result.
1 parent 6b1186a commit 0fa7fee

1 file changed

Lines changed: 31 additions & 23 deletions

File tree

index-functions-cpp.xml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,20 @@
472472
<variable name="std::is_void_v" link="cpp/types/is_void" since="c++17"/>
473473
<class name="std::is_null_pointer" link="cpp/types/is_null_pointer" since="c++14"/>
474474
<variable name="std::is_null_pointer_v" link="cpp/types/is_null_pointer" since="c++17"/>
475-
<class name="std::is_final" link="cpp/types/is_final" since="c++14"/>
476-
<variable name="std::is_final_v" link="cpp/types/is_final" since="c++17"/>
477475
<class name="std::is_integral" link="cpp/types/is_integral"/>
478476
<variable name="std::is_integral_v" link="cpp/types/is_integral" since="c++17"/>
479477
<class name="std::is_floating_point" link="cpp/types/is_floating_point"/>
480478
<variable name="std::is_floating_point_v" link="cpp/types/is_floating_point" since="c++17"/>
481479
<class name="std::is_array" link="cpp/types/is_array"/>
482480
<variable name="std::is_array_v" link="cpp/types/is_array" since="c++17"/>
481+
<class name="std::is_enum" link="cpp/types/is_enum"/>
482+
<variable name="std::is_enum_v" link="cpp/types/is_enum" since="c++17"/>
483+
<class name="std::is_union" link="cpp/types/is_union"/>
484+
<variable name="std::is_union_v" link="cpp/types/is_union" since="c++17"/>
485+
<class name="std::is_class" link="cpp/types/is_class"/>
486+
<variable name="std::is_class_v" link="cpp/types/is_class" since="c++17"/>
487+
<class name="std::is_function" link="cpp/types/is_function"/>
488+
<variable name="std::is_function_v" link="cpp/types/is_function" since="c++17"/>
483489
<class name="std::is_pointer" link="cpp/types/is_pointer"/>
484490
<variable name="std::is_pointer_v" link="cpp/types/is_pointer" since="c++17"/>
485491
<class name="std::is_lvalue_reference" link="cpp/types/is_lvalue_reference"/>
@@ -490,27 +496,19 @@
490496
<variable name="std::is_member_object_pointer_v" link="cpp/types/is_member_object_pointer" since="c++17"/>
491497
<class name="std::is_member_function_pointer" link="cpp/types/is_member_function_pointer"/>
492498
<variable name="std::is_member_function_pointer_v" link="cpp/types/is_member_function_pointer" since="c++17"/>
493-
<class name="std::is_enum" link="cpp/types/is_enum"/>
494-
<variable name="std::is_enum_v" link="cpp/types/is_enum" since="c++17"/>
495-
<class name="std::is_union" link="cpp/types/is_union"/>
496-
<variable name="std::is_union_v" link="cpp/types/is_union" since="c++17"/>
497-
<class name="std::is_class" link="cpp/types/is_class"/>
498-
<variable name="std::is_class_v" link="cpp/types/is_class" since="c++17"/>
499-
<class name="std::is_function" link="cpp/types/is_function"/>
500-
<variable name="std::is_function_v" link="cpp/types/is_function" since="c++17"/>
501499

502-
<class name="std::is_reference" link="cpp/types/is_reference"/>
503-
<variable name="std::is_reference_v" link="cpp/types/is_reference" since="c++17"/>
504-
<class name="std::is_arithmetic" link="cpp/types/is_arithmetic"/>
505-
<variable name="std::is_arithmetic_v" link="cpp/types/is_arithmetic" since="c++17"/>
506500
<class name="std::is_fundamental" link="cpp/types/is_fundamental"/>
507501
<variable name="std::is_fundamental_v" link="cpp/types/is_fundamental" since="c++17"/>
508-
<class name="std::is_object" link="cpp/types/is_object"/>
509-
<variable name="std::is_object_v" link="cpp/types/is_object" since="c++17"/>
502+
<class name="std::is_arithmetic" link="cpp/types/is_arithmetic"/>
503+
<variable name="std::is_arithmetic_v" link="cpp/types/is_arithmetic" since="c++17"/>
510504
<class name="std::is_scalar" link="cpp/types/is_scalar"/>
511505
<variable name="std::is_scalar_v" link="cpp/types/is_scalar" since="c++17"/>
506+
<class name="std::is_object" link="cpp/types/is_object"/>
507+
<variable name="std::is_object_v" link="cpp/types/is_object" since="c++17"/>
512508
<class name="std::is_compound" link="cpp/types/is_compound"/>
513509
<variable name="std::is_compound_v" link="cpp/types/is_compound" since="c++17"/>
510+
<class name="std::is_reference" link="cpp/types/is_reference"/>
511+
<variable name="std::is_reference_v" link="cpp/types/is_reference" since="c++17"/>
514512
<class name="std::is_member_pointer" link="cpp/types/is_member_pointer"/>
515513
<variable name="std::is_member_pointer_v" link="cpp/types/is_member_pointer" since="c++17"/>
516514

@@ -528,14 +526,18 @@
528526
<variable name="std::is_pod_v" link="cpp/types/is_pod" since="c++17"/>
529527
<class name="std::is_literal_type" link="cpp/types/is_literal_type"/>
530528
<variable name="std::is_literal_type_v" link="cpp/types/is_literal_type" since="c++17"/>
529+
<class name="std::has_unique_object_representations" link="cpp/types/has_unique_object_representations" since="c++17"/>
530+
<variable name="std::has_unique_object_representations_v" link="cpp/types/has_unique_object_representations" since="c++17"/>
531531
<class name="std::is_empty" link="cpp/types/is_empty"/>
532532
<variable name="std::is_empty_v" link="cpp/types/is_empty" since="c++17"/>
533533
<class name="std::is_polymorphic" link="cpp/types/is_polymorphic"/>
534534
<variable name="std::is_polymorphic_v" link="cpp/types/is_polymorphic" since="c++17"/>
535535
<class name="std::is_abstract" link="cpp/types/is_abstract"/>
536536
<variable name="std::is_abstract_v" link="cpp/types/is_abstract" since="c++17"/>
537-
<class name="std::has_unique_object_representations" link="cpp/types/has_unique_object_representations" since="c++17"/>
538-
<variable name="std::has_unique_object_representations_v" link="cpp/types/has_unique_object_representations" since="c++17"/>
537+
<class name="std::is_final" link="cpp/types/is_final" since="c++14"/>
538+
<variable name="std::is_final_v" link="cpp/types/is_final" since="c++17"/>
539+
<class name="std::is_aggregate" link="cpp/types/is_aggregate" since="c++14"/>
540+
<variable name="std::is_aggregate_v" link="cpp/types/is_aggregate" since="c++17"/>
539541
<class name="std::is_signed" link="cpp/types/is_signed"/>
540542
<variable name="std::is_signed_v" link="cpp/types/is_signed" since="c++17"/>
541543
<class name="std::is_unsigned" link="cpp/types/is_unsigned"/>
@@ -591,10 +593,6 @@
591593
<class name="std::is_nothrow_destructible" link="cpp/types/is_destructible"/>
592594
<variable name="std::is_nothrow_destructible_v" link="cpp/types/is_destructible" since="c++17"/>
593595

594-
<class name="std::is_callable" link="cpp/types/is_callable" since="c++17"/>
595-
<variable name="std::is_callable_v" link="cpp/types/is_callable" since="c++17"/>
596-
<class name="std::is_nothrow_callable" link="cpp/types/is_callable" since="c++17"/>
597-
<variable name="std::is_nothrow_callable_v" link="cpp/types/is_callable" since="c++17"/>
598596
<class name="std::is_swappable" link="cpp/types/is_swappable" since="c++17"/>
599597
<variable name="std::is_swappable_v" link="cpp/types/is_swappable" since="c++17"/>
600598
<class name="std::is_swappable_with" link="cpp/types/is_swappable_with" since="c++17"/>
@@ -620,6 +618,14 @@
620618
<variable name="std::is_base_of_v" link="cpp/types/is_base_of" since="c++17"/>
621619
<class name="std::is_convertible" link="cpp/types/is_convertible"/>
622620
<variable name="std::is_convertible_v" link="cpp/types/is_convertible" since="c++17"/>
621+
<class name="std::is_invocable" link="cpp/types/is_invocable" since="c++17"/>
622+
<variable name="std::is_invocable_v" link="cpp/types/is_invocable" since="c++17"/>
623+
<class name="std::is_invocable_r" link="cpp/types/is_invocable" since="c++17"/>
624+
<variable name="std::is_invocable_r_v" link="cpp/types/is_invocable" since="c++17"/>
625+
<class name="std::is_nothrow_invocable" link="cpp/types/is_invocable" since="c++17"/>
626+
<variable name="std::is_nothrow_invocable_v" link="cpp/types/is_invocable" since="c++17"/>
627+
<class name="std::is_nothrow_invocable_r" link="cpp/types/is_invocable" since="c++17"/>
628+
<variable name="std::is_nothrow_invocable_r_v" link="cpp/types/is_invocable" since="c++17"/>
623629

624630
<class name="std::remove_cv" link="cpp/types/remove_cv" since="c++11"/>
625631
<class name="std::remove_const" link="cpp/types/remove_cv" since="c++11"/>
@@ -665,7 +671,6 @@
665671
<typedef name="std::decay_t" alias="std::decay" since="c++14"/>
666672
<class name="std::enable_if" link="cpp/types/enable_if"/>
667673
<typedef name="std::enable_if_t" alias="std::enable_if" since="c++14"/>
668-
<typedef name="std::void_t" link="cpp/types/void_t" since="c++17"/>
669674
<class name="std::conditional" link="cpp/types/conditional"/>
670675
<typedef name="std::conditional_t" alias="std::conditional" since="c++14"/>
671676
<class name="std::common_type" link="cpp/types/common_type"/>
@@ -674,6 +679,9 @@
674679
<typedef name="std::underlying_type_t" alias="std::underlying_type" since="c++14"/>
675680
<class name="std::result_of" link="cpp/types/result_of"/>
676681
<typedef name="std::result_of_t" alias="std::result_of" since="c++14"/>
682+
<class name="std::invoke_result" link="cpp/types/result_of" since="c++17"/>
683+
<typedef name="std::invoke_result_t" alias="std::invoke_result" since="c++14"/>
684+
<typedef name="std::void_t" link="cpp/types/void_t" since="c++17"/>
677685

678686
<class name="std::conjunction" link="cpp/types/conjunction" since="c++17"/>
679687
<variable name="std::conjunction_v" link="cpp/types/conjunction" since="c++17"/>

0 commit comments

Comments
 (0)