xo-alloc/xo-indentlog/include/xo/indentlog/print/pair.hpp
Roland Conybeare 341fcfd1c7 Add 'xo-indentlog/' from commit 'd43c4af0b4'
git-subtree-dir: xo-indentlog
git-subtree-mainline: 1c3f033933
git-subtree-split: d43c4af0b4
2025-05-10 17:00:33 -05:00

24 lines
418 B
C++

/* @file pair.hpp */
#pragma once
#include <iostream>
#include <utility>
namespace std {
template <typename T, typename U>
inline std::ostream &
operator<<(std::ostream & os,
std::pair<T,U> const & x)
{
os << "["
<< x.first
<< " "
<< x.second
<< "]";
return os;
} /*operator<<*/
} /*namespace std*/
/* end pair.hpp */