Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_Range1D.cpp
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
12namespace Teuchos {
13
14const Range1D Range1D::Invalid(Range1D::INVALID);
15
16} // end namespace Teuchos
17
18std::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}
Smart reference counting pointer class for automatic garbage collection.
static const Range1D Invalid
Used for Range1D(INVALID)
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...