Functions
test_intervals.cxx File Reference
#include <boost/numeric/interval.hpp>
#include <iostream>

Go to the source code of this file.

Functions

template<class T , class Policies >
std::ostream & operator<< (std::ostream &os, const boost::numeric::interval< T, Policies > &x)
 
int main ()
 

Function Documentation

int main ( void  )

Definition at line 13 of file test_intervals.cxx.

13  {
14 
15  typedef boost::numeric::interval<double> I;
16  I a = 42.0, b{5.0, 7.0};
17  I c = a/b;
18 
19  cout << a << " / " << b << " = " << c << endl;
20 
21  return 0;
22 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
static bool * b
Definition: config.cpp:1043
QTextStream & endl(QTextStream &s)
template<class T , class Policies >
std::ostream& operator<< ( std::ostream &  os,
const boost::numeric::interval< T, Policies > &  x 
)

Definition at line 6 of file test_intervals.cxx.

7  {
8  os << "[" << x.lower() << ", " << x.upper() << "]";
9  return os;
10 }
list x
Definition: train.py:276