aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/objects/floatingpointtype.cpp
blob: b011dbdd23e903b9c67fa433741454764ed45bbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/objects/floatingpointtype.h>
#include <vespa/vespalib/stllike/asciistream.h>
#include <ostream>

namespace vespalib {

template<typename Number>
std::ostream& operator<<(std::ostream& out, FloatingPointType<Number> number)
{
    return out << number.getValue();
}

template<typename Number>
vespalib::asciistream & operator<<(vespalib::asciistream & out, FloatingPointType<Number> number)
{
    return out << number.getValue();
}

template std::ostream& operator<<(std::ostream& out, FloatingPointType<float> number);
template std::ostream& operator<<(std::ostream& out, FloatingPointType<double> number);

template vespalib::asciistream& operator<<(vespalib::asciistream& out, FloatingPointType<float> number);
template vespalib::asciistream& operator<<(vespalib::asciistream& out, FloatingPointType<double> number);

}