xo-umbrella2/xo-flatstring/include/xo/flatstring/int128_iostream.hpp
Roland Conybeare fa57de89fe git subrepo clone (merge) git@github.com:Rconybea/xo-flatstring xo-flatstring
subrepo:
  subdir:   "xo-flatstring"
  merged:   "996c220e"
upstream:
  origin:   "git@github.com:Rconybea/xo-flatstring"
  branch:   "main"
  commit:   "996c220e"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 21:34:32 -04:00

31 lines
583 B
C++

/** @file int128_iostream.hpp
*
* Author: Roland Conybeare
**/
#pragma once
#include "flatstring.hpp"
#include <ostream>
namespace std {
/* print a 128-bit integer */
inline std::ostream &
operator<< (std::ostream & os, __int128 x) {
os << xo::flatstring<48>::from_int(x);
return os;
}
}
#ifdef NOT_USING
namespace xo {
/* print a 128-bit integer */
inline std::ostream &
operator<< (std::ostream & os, __int128 x) {
os << xo::flatstring<48>::from_int(x);
return os;
}
}
#endif
/** end int128_iostream.hpp **/