aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/predicate/predicate_interval.cpp
blob: f5dcc9f3cc00b976862ff842c2fff4589d0fb987 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "predicate_interval.h"
#include <ostream>

namespace search::predicate {

std::ostream &
operator<<(std::ostream &out, const Interval &i) {
    std::ios_base::fmtflags flags = out.flags();
    out << "0x" << std::hex << i.interval;
    out.flags(flags);
    return out;
}

std::ostream &
operator<<(std::ostream &out, const IntervalWithBounds &i) {
    std::ios_base::fmtflags flags = out.flags();
    out << "0x" << std::hex << i.interval << ", 0x" << i.bounds;
    out.flags(flags);
    return out;
}

}