diff options
author | Geir Storli <geirst@oath.com> | 2017-11-17 11:28:00 +0000 |
---|---|---|
committer | Geir Storli <geirst@oath.com> | 2017-11-17 11:28:00 +0000 |
commit | 7f1b100fe071c8a3a759a42008f7425730e9ef36 (patch) | |
tree | a205fb96f8694df743039713b641eecbfdef6981 /document/src | |
parent | 39416a17871a5915fe9533a8d3dae3818dd6e10d (diff) |
Add std::ostream operator<< overload to BucketSpace.
Diffstat (limited to 'document/src')
-rw-r--r-- | document/src/vespa/document/bucket/bucketspace.cpp | 5 | ||||
-rw-r--r-- | document/src/vespa/document/bucket/bucketspace.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/document/src/vespa/document/bucket/bucketspace.cpp b/document/src/vespa/document/bucket/bucketspace.cpp index 304631ce334..7c1c816b5ba 100644 --- a/document/src/vespa/document/bucket/bucketspace.cpp +++ b/document/src/vespa/document/bucket/bucketspace.cpp @@ -20,4 +20,9 @@ vespalib::asciistream& operator<<(vespalib::asciistream& os, const BucketSpace& << ")"; } +std::ostream& operator<<(std::ostream& os, const BucketSpace& bucketSpace) +{ + return os << bucketSpace.toString(); +} + } diff --git a/document/src/vespa/document/bucket/bucketspace.h b/document/src/vespa/document/bucket/bucketspace.h index c13c81dbd73..1198b173a4b 100644 --- a/document/src/vespa/document/bucket/bucketspace.h +++ b/document/src/vespa/document/bucket/bucketspace.h @@ -42,5 +42,6 @@ private: }; vespalib::asciistream& operator<<(vespalib::asciistream&, const BucketSpace&); +std::ostream& operator<<(std::ostream&, const BucketSpace&); } |