File indexing completed on 2025-01-30 09:49:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef BOOST_NUMERIC_INTERVAL_IO_HPP
0018 #define BOOST_NUMERIC_INTERVAL_IO_HPP
0019
0020 #include <boost/numeric/interval/interval.hpp>
0021 #include <boost/numeric/interval/utility.hpp>
0022 #include <ostream>
0023
0024 namespace boost {
0025 namespace numeric {
0026
0027 template<class CharType, class CharTraits, class T, class Policies>
0028 std::basic_ostream<CharType, CharTraits> &operator<<
0029 (std::basic_ostream<CharType, CharTraits> &stream,
0030 interval<T, Policies> const &value)
0031 {
0032 if (empty(value))
0033 return stream << "[]";
0034 else
0035 return stream << '[' << lower(value) << ',' << upper(value) << ']';
0036 }
0037
0038 }
0039 }
0040
0041 #endif