summaryrefslogtreecommitdiffstats
path: root/searchcommon/src
diff options
context:
space:
mode:
Diffstat (limited to 'searchcommon/src')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/iattributevector.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
index 28f7f7df061..8e17e697d0e 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h
@@ -45,14 +45,15 @@ public:
class IAttributeVector
{
public:
- typedef uint32_t DocId;
- typedef uint32_t EnumHandle;
- typedef int64_t largeint_t;
- typedef WeightedType<double> WeightedFloat;
- typedef WeightedType<largeint_t> WeightedInt;
- typedef WeightedType<EnumHandle> WeightedEnum;
- typedef WeightedType<const char *> WeightedConstChar;
- typedef WeightedType<vespalib::string> WeightedString;
+ using SP = std::shared_ptr<IAttributeVector>;
+ using DocId = uint32_t;
+ using EnumHandle = uint32_t;
+ using largeint_t = int64_t;
+ using WeightedFloat = WeightedType<double>;
+ using WeightedInt = WeightedType<largeint_t>;
+ using WeightedEnum = WeightedType<EnumHandle>;
+ using WeightedConstChar = WeightedType<const char *>;
+ using WeightedString = WeightedType<vespalib::string>;
/**
* Returns the name of this attribute vector.