2020-03-09 18:55:41 +01:00
|
|
|
Welcome to mp-units!
|
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
**mp-units** is a compile-time enabled Modern C++ library that provides compile-time dimensional
|
|
|
|
|
analysis and unit/quantity manipulation. Source code is hosted on `GitHub <https://github.com/mpusz/units>`_
|
|
|
|
|
with a permissive `MIT license <https://github.com/mpusz/units/blob/master/LICENSE.md>`_.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. important::
|
|
|
|
|
|
|
|
|
|
The **mp-units** library is the subject of this ISO C++ paper: `P1935 <https://wg21.link/p1935>`_.
|
|
|
|
|
It is explained in this `CppCon 2019 talk <https://youtu.be/0YW6yxkdhlU>`_ (slightly dated now).
|
|
|
|
|
We are working towards potentially having it standardized for C++23 and are actively looking
|
|
|
|
|
for parties interested in field trialing the library.
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
As this library targets C++23 and extensively uses C++20 features as of now it compiles correctly
|
2020-09-08 13:09:34 +02:00
|
|
|
only with gcc-10, MSVC 16.7, and newer.
|
2020-03-09 18:55:41 +01:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
:caption: Getting Started:
|
|
|
|
|
|
|
|
|
|
introduction
|
|
|
|
|
quick_start
|
|
|
|
|
usage
|
|
|
|
|
framework
|
2020-03-19 14:45:59 +01:00
|
|
|
use_cases
|
2020-03-09 18:55:41 +01:00
|
|
|
design
|
|
|
|
|
examples
|
|
|
|
|
faq
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
2020-05-28 14:22:14 +02:00
|
|
|
:maxdepth: 2
|
2020-03-09 18:55:41 +01:00
|
|
|
:caption: Reference:
|
|
|
|
|
|
2020-05-28 14:22:14 +02:00
|
|
|
reference/core
|
2020-03-09 18:55:41 +01:00
|
|
|
reference/systems
|
2020-05-28 14:22:14 +02:00
|
|
|
reference/math
|
|
|
|
|
reference/random
|
2020-03-09 18:55:41 +01:00
|
|
|
|
2020-05-14 11:10:06 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
Source code documentation tools used to generate the above chapter still do not understand
|
|
|
|
|
C++20 to well which results in some issues in the generated output. We do our best to address
|
|
|
|
|
this ASAP.
|
|
|
|
|
|
2020-03-09 18:55:41 +01:00
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
:caption: Appendix:
|
|
|
|
|
|
|
|
|
|
glossary
|
|
|
|
|
genindex
|
|
|
|
|
CHANGELOG
|
2020-09-08 20:04:29 +02:00
|
|
|
references
|