mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
Forcing highlighting in Sphinx disabled
This commit is contained in:
@@ -5,4 +5,3 @@ avg_speed
|
|||||||
:caption: avg_speed.cpp
|
:caption: avg_speed.cpp
|
||||||
:start-at: #include
|
:start-at: #include
|
||||||
:linenos:
|
:linenos:
|
||||||
:force:
|
|
||||||
|
@@ -196,10 +196,7 @@ reference ("kilohours" does not have much sense, right?). The `ratio` type
|
|||||||
used in the definition is really similar to ``std::ratio`` but it takes
|
used in the definition is really similar to ``std::ratio`` but it takes
|
||||||
the third additional argument that defines the exponent of the ratio.
|
the third additional argument that defines the exponent of the ratio.
|
||||||
Thanks to it we can address nearly infinite scaling factors between units
|
Thanks to it we can address nearly infinite scaling factors between units
|
||||||
and define units like:
|
and define units like::
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
:force:
|
|
||||||
|
|
||||||
struct electronvolt : named_scaled_unit<electronvolt, "eV", prefix,
|
struct electronvolt : named_scaled_unit<electronvolt, "eV", prefix,
|
||||||
ratio<1'602'176'634, 1'000'000'000, -19>, joule> {};
|
ratio<1'602'176'634, 1'000'000'000, -19>, joule> {};
|
||||||
@@ -248,10 +245,7 @@ complete list of all the :term:`SI` prefixes supported by the library::
|
|||||||
}
|
}
|
||||||
|
|
||||||
Alternative hierarchy of prefixes is the one used in data information
|
Alternative hierarchy of prefixes is the one used in data information
|
||||||
domain:
|
domain::
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
:force:
|
|
||||||
|
|
||||||
namespace data {
|
namespace data {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user