diff options
author | Geir Storli <geirst@yahoo-inc.com> | 2017-02-22 13:08:15 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahoo-inc.com> | 2017-02-22 13:08:15 +0000 |
commit | 03333b45e6cc2efcbd0eae85bfc68e5fcc9b74e8 (patch) | |
tree | f1b707c65ab94f5033b9465f78b07e71ab16b3ff /searchcommon | |
parent | ee7f29ea482640769a856b597367cfc8544eb1cd (diff) |
Add using statement for shared ptr (and change 'typedef' to 'using').
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/iattributevector.h | 17 |
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. |