blob: f946e21a5fa52c45d5236f2290fcb007aed9b840 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "range.h"
#include <vespa/vespalib/stllike/asciistream.h>
namespace search::query {
Range::Range(int64_t f, int64_t t)
{
vespalib::asciistream ost;
ost << "[" << f << ";" << t << "]";
_range = ost.str();
}
vespalib::asciistream &operator<<(vespalib::asciistream &out, const Range &range)
{
return out << range.getRangeString();
}
}
|