Line data Source code
1 : /** @file scaled_unit_iostream.hpp 2 : * 3 : * Author: Roland Conybeare 4 : **/ 5 : 6 : #pragma once 7 : 8 : #include "scaled_unit.hpp" 9 : #include <iostream> 10 : 11 : namespace xo { 12 : namespace qty { 13 : template <typename Int> 14 : inline std::ostream & 15 6 : operator<<(std::ostream & os, const scaled_unit<Int> & x) { 16 6 : os << "<scaled-unit" 17 12 : << xtag("bpuv", x.natural_unit_) 18 12 : << xtag("outer_scale_exact", x.outer_scale_exact_) 19 6 : << xtag("outer_scale_sq", x.outer_scale_sq_) 20 6 : << ">"; 21 : 22 6 : return os; 23 : }; 24 : } /*namespace qty*/ 25 : } /*namespace xo*/ 26 : 27 : /** end scaled_unit_iostream.hpp **/