blob: 6abf0bd32e56fd586975929ce65b29b1443e8c15 (
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 Vespa.ai. 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;
}
}
|