diff --git a/docs/users_guide/framework_basics/basic_concepts.md b/docs/users_guide/framework_basics/basic_concepts.md index a99eae61..574b8592 100644 --- a/docs/users_guide/framework_basics/basic_concepts.md +++ b/docs/users_guide/framework_basics/basic_concepts.md @@ -95,14 +95,6 @@ including: `QuantitySpec` can be defined by the user in one of the following ways: - === "C++20" - - ```cpp - inline constexpr struct length : quantity_spec {} length; - inline constexpr struct height : quantity_spec {} height; - inline constexpr struct speed : quantity_spec {} speed; - ``` - === "C++23" ```cpp @@ -111,6 +103,14 @@ including: inline constexpr struct speed : quantity_spec {} speed; ``` + === "C++20" + + ```cpp + inline constexpr struct length : quantity_spec {} length; + inline constexpr struct height : quantity_spec {} height; + inline constexpr struct speed : quantity_spec {} speed; + ``` + === "Portable" ```cpp diff --git a/docs/users_guide/framework_basics/character_of_a_quantity.md b/docs/users_guide/framework_basics/character_of_a_quantity.md index e7d8ca02..53083e59 100644 --- a/docs/users_guide/framework_basics/character_of_a_quantity.md +++ b/docs/users_guide/framework_basics/character_of_a_quantity.md @@ -94,13 +94,6 @@ Also, it explicitly states that: To specify that a specific quantity has a vector or tensor character a value of `quantity_character` enumeration can be appended to the `quantity_spec` describing such a quantity type: -=== "C++20" - - ```cpp - inline constexpr struct position_vector : quantity_spec {} position_vector; - inline constexpr struct displacement : quantity_spec {} displacement; - ``` - === "C++23" ```cpp @@ -108,6 +101,13 @@ enumeration can be appended to the `quantity_spec` describing such a quantity ty inline constexpr struct displacement : quantity_spec {} displacement; ``` +=== "C++20" + + ```cpp + inline constexpr struct position_vector : quantity_spec {} position_vector; + inline constexpr struct displacement : quantity_spec {} displacement; + ``` + === "Portable" ```cpp @@ -123,18 +123,18 @@ character determined according to the kind of operations included in the For example, `velocity` in the below definition will be defined as a vector quantity (no explicit character override is needed): -=== "C++20" - - ```cpp - inline constexpr struct velocity : quantity_spec {} velocity; - ``` - === "C++23" ```cpp inline constexpr struct velocity : quantity_spec {} velocity; ``` +=== "C++20" + + ```cpp + inline constexpr struct velocity : quantity_spec {} velocity; + ``` + === "Portable" ```cpp diff --git a/docs/users_guide/framework_basics/dimensionless_quantities.md b/docs/users_guide/framework_basics/dimensionless_quantities.md index 1d45592d..cf30946d 100644 --- a/docs/users_guide/framework_basics/dimensionless_quantities.md +++ b/docs/users_guide/framework_basics/dimensionless_quantities.md @@ -212,14 +212,6 @@ flowchart TD To provide such support in the library, we provided an `is_kind` specifier that can be appended to the quantity specification: -=== "C++20" - - ```cpp - inline constexpr struct angular_measure : quantity_spec {} angular_measure; - inline constexpr struct solid_angular_measure : quantity_spec(radius), is_kind> {} solid_angular_measure; - inline constexpr struct storage_capacity : quantity_spec {} storage_capacity; - ``` - === "C++23" ```cpp @@ -228,6 +220,14 @@ to the quantity specification: inline constexpr struct storage_capacity : quantity_spec {} storage_capacity; ``` +=== "C++20" + + ```cpp + inline constexpr struct angular_measure : quantity_spec {} angular_measure; + inline constexpr struct solid_angular_measure : quantity_spec(radius), is_kind> {} solid_angular_measure; + inline constexpr struct storage_capacity : quantity_spec {} storage_capacity; + ``` + === "Portable" ```cpp diff --git a/docs/users_guide/framework_basics/systems_of_quantities.md b/docs/users_guide/framework_basics/systems_of_quantities.md index 663557ae..bf334e53 100644 --- a/docs/users_guide/framework_basics/systems_of_quantities.md +++ b/docs/users_guide/framework_basics/systems_of_quantities.md @@ -121,28 +121,6 @@ from such an instantiation. For example, here is how the above quantity kind tree can be modeled in the library: -=== "C++20" - - ```cpp - inline constexpr struct length : quantity_spec {} length; - inline constexpr struct width : quantity_spec {} width; - inline constexpr auto breadth = width; - inline constexpr struct height : quantity_spec {} height; - inline constexpr auto depth = height; - inline constexpr auto altitude = height; - inline constexpr struct thickness : quantity_spec {} thickness; - inline constexpr struct diameter : quantity_spec {} diameter; - inline constexpr struct radius : quantity_spec {} radius; - inline constexpr struct radius_of_curvature : quantity_spec {} radius_of_curvature; - inline constexpr struct path_length : quantity_spec {} path_length; - inline constexpr auto arc_length = path_length; - inline constexpr struct distance : quantity_spec {} distance; - inline constexpr struct radial_distance : quantity_spec {} radial_distance; - inline constexpr struct wavelength : quantity_spec {} wavelength; - inline constexpr struct position_vector : quantity_spec {} position_vector; - inline constexpr struct displacement : quantity_spec {} displacement; - ``` - === "C++23" ```cpp @@ -165,6 +143,28 @@ For example, here is how the above quantity kind tree can be modeled in the libr inline constexpr struct displacement : quantity_spec {} displacement; ``` +=== "C++20" + + ```cpp + inline constexpr struct length : quantity_spec {} length; + inline constexpr struct width : quantity_spec {} width; + inline constexpr auto breadth = width; + inline constexpr struct height : quantity_spec {} height; + inline constexpr auto depth = height; + inline constexpr auto altitude = height; + inline constexpr struct thickness : quantity_spec {} thickness; + inline constexpr struct diameter : quantity_spec {} diameter; + inline constexpr struct radius : quantity_spec {} radius; + inline constexpr struct radius_of_curvature : quantity_spec {} radius_of_curvature; + inline constexpr struct path_length : quantity_spec {} path_length; + inline constexpr auto arc_length = path_length; + inline constexpr struct distance : quantity_spec {} distance; + inline constexpr struct radial_distance : quantity_spec {} radial_distance; + inline constexpr struct wavelength : quantity_spec {} wavelength; + inline constexpr struct position_vector : quantity_spec {} position_vector; + inline constexpr struct displacement : quantity_spec {} displacement; + ``` + === "Portable" ```cpp