xo-umbrella2/xo-unit/include/xo/unit/bpu_iostream.hpp
Roland Conybeare d1fa15f248 Add 'xo-unit/' from commit 'b531e382c2'
git-subtree-dir: xo-unit
git-subtree-mainline: e9ee6992ca
git-subtree-split: b531e382c2
2025-05-10 21:29:43 -05:00

30 lines
671 B
C++

/** @file bpu_iostream.hpp
*
* Author: Roland Conybeare
**/
#pragma once
#include "bpu.hpp"
#include "dim_iostream.hpp"
#include "xo/ratio/ratio_iostream.hpp"
#include "xo/indentlog/print/tag.hpp"
#include <iostream>
namespace xo {
namespace qty {
template <typename Int>
inline std::ostream &
operator<<(std::ostream & os, const bpu<Int> & x) {
os << "<bpu"
<< xtag("dim", x.native_dim())
<< xtag("mult", x.scalefactor())
<< xtag("pwr", x.power())
<< ">";
return os;
}
} /*namespace qty*/
} /*namespace xo*/
/** end bpu_iostream.hpp **/