docs: quantity_io.h described in docs

This commit is contained in:
Mateusz Pusz
2020-12-28 17:40:29 +01:00
parent 028b8fb80c
commit 326050cfee
4 changed files with 8 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ the below example for a quick preview of basic library features:
#include <units/physical/si/derived/speed.h> #include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/derived/speed.h> #include <units/physical/si/international/derived/speed.h>
#include <units/format.h> #include <units/format.h>
#include <units/quantity_io.h>
#include <iostream> #include <iostream>
using namespace units::physical; using namespace units::physical;

View File

@@ -2,6 +2,7 @@
- **0.7.0 WIP** - **0.7.0 WIP**
- (!) refactor: `ScalableNumber` renamed to `QuantityValue` - (!) refactor: `ScalableNumber` renamed to `QuantityValue`
- (!) refactor: Output stream operators moved to the `units/quantity_io.h` header file
- refactor: basic concepts, `quantity` and `quantity_cast` refactored - refactor: basic concepts, `quantity` and `quantity_cast` refactored
- refactor: `abs()` definition refactored to be more explicit about the return type - refactor: `abs()` definition refactored to be more explicit about the return type
- feat: interoperability with `std::chrono::duration` and other units libraries - feat: interoperability with `std::chrono::duration` and other units libraries

View File

@@ -13,6 +13,11 @@ also tries really hard to print any quantity in the most user friendly way.
Output Streams Output Streams
-------------- --------------
.. tip::
The streaming support is provided via the ``<units/quantity_io.h>`` header
file.
The easiest way to print a quantity is to provide its object to the output The easiest way to print a quantity is to provide its object to the output
stream:: stream::

View File

@@ -40,6 +40,7 @@ of basic library features::
#include <units/physical/si/derived/speed.h> #include <units/physical/si/derived/speed.h>
#include <units/physical/si/international/derived/speed.h> #include <units/physical/si/international/derived/speed.h>
#include <units/format.h> #include <units/format.h>
#include <units/quantity_io.h>
#include <iostream> #include <iostream>
using namespace units::physical; using namespace units::physical;