forked from mpusz/mp-units
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/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;
|
||||||
|
@@ -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
|
||||||
|
@@ -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::
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user