aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/weak_and/rise_wand.h
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-12-21 12:27:11 +0000
committerGeir Storli <geirst@yahooinc.com>2022-12-21 12:28:17 +0000
commitb65ada009591fc728058f3993e31315ed592fe42 (patch)
tree58860909cfe3c3eb3cc7ac83800dc6e3b5dfa6d6 /searchlib/src/tests/queryeval/weak_and/rise_wand.h
parent958cc2a655735beca465a080e202fdf35b1e0772 (diff)
Change from typedef to using in searchlib C++ code.
Diffstat (limited to 'searchlib/src/tests/queryeval/weak_and/rise_wand.h')
-rw-r--r--searchlib/src/tests/queryeval/weak_and/rise_wand.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/searchlib/src/tests/queryeval/weak_and/rise_wand.h b/searchlib/src/tests/queryeval/weak_and/rise_wand.h
index 7a5e46c05ea..250993bf139 100644
--- a/searchlib/src/tests/queryeval/weak_and/rise_wand.h
+++ b/searchlib/src/tests/queryeval/weak_and/rise_wand.h
@@ -28,10 +28,10 @@ template <typename Scorer, typename Cmp>
class RiseWand : public search::queryeval::SearchIterator
{
public:
- typedef uint32_t docid_t;
- typedef uint64_t score_t;
- typedef search::queryeval::wand::Terms Terms;
- typedef search::queryeval::SearchIterator *PostingStreamPtr;
+ using docid_t = uint32_t;
+ using score_t = uint64_t;
+ using Terms = search::queryeval::wand::Terms;
+ using PostingStreamPtr = search::queryeval::SearchIterator*;
private:
// comparator class that compares two streams. The variables a and b are
@@ -125,8 +125,8 @@ public:
void doUnpack(uint32_t docid) override;
};
-typedef RiseWand<TermFreqScorer, std::greater_equal<uint64_t> > TermFrequencyRiseWand;
-typedef RiseWand<DotProductScorer, std::greater<uint64_t> > DotProductRiseWand;
+using TermFrequencyRiseWand = RiseWand<TermFreqScorer, std::greater_equal<uint64_t> >;
+using DotProductRiseWand = RiseWand<DotProductScorer, std::greater<uint64_t> >;
} // namespacve rise