mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 21:24:27 +02:00
docs: quantity_io.h described in docs
This commit is contained in:
@@ -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/international/derived/speed.h>
|
||||
#include <units/format.h>
|
||||
#include <units/quantity_io.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace units::physical;
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
- **0.7.0 WIP**
|
||||
- (!) 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: `abs()` definition refactored to be more explicit about the return type
|
||||
- feat: interoperability with `std::chrono::duration` and other units libraries
|
||||
|
@@ -13,6 +13,11 @@ also tries really hard to print any quantity in the most user friendly way.
|
||||
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
|
||||
stream::
|
||||
|
||||
|
@@ -40,6 +40,7 @@ of basic library features::
|
||||
#include <units/physical/si/derived/speed.h>
|
||||
#include <units/physical/si/international/derived/speed.h>
|
||||
#include <units/format.h>
|
||||
#include <units/quantity_io.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace units::physical;
|
||||
|
Reference in New Issue
Block a user