Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_Range1D.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #include "Teuchos_Range1D.hpp"
11 
12 namespace Teuchos {
13 
14 const Range1D Range1D::Invalid(Range1D::INVALID);
15 
16 } // end namespace Teuchos
17 
18 std::ostream& Teuchos::operator<<(std::ostream &out, const Range1D& rng)
19 {
20  out << "Range1D{";
21  if (rng == Range1D::Invalid) {
22  out << "Invalid";
23  }
24  else {
25  out << rng.lbound() << "," << rng.ubound();
26  }
27  out << "}";
28  return out;
29 }
std::ostream & operator<<(std::ostream &os, BigUInt< n > a)
static const Range1D Invalid
Used for Range1D(INVALID)