docs: C++23 examples placed first so they open by default in the docs

This commit is contained in:
Mateusz Pusz
2023-07-11 17:22:32 +02:00
parent 8076916d5c
commit 1f1258d4e3
4 changed files with 51 additions and 51 deletions

View File

@@ -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, dim_length> {} length;
inline constexpr struct height : quantity_spec<height, length> {} height;
inline constexpr struct speed : quantity_spec<speed, length / time> {} speed;
```
=== "C++23"
```cpp
@@ -111,6 +103,14 @@ including:
inline constexpr struct speed : quantity_spec<length / time> {} speed;
```
=== "C++20"
```cpp
inline constexpr struct length : quantity_spec<length, dim_length> {} length;
inline constexpr struct height : quantity_spec<height, length> {} height;
inline constexpr struct speed : quantity_spec<speed, length / time> {} speed;
```
=== "Portable"
```cpp