diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:48:56 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-21 15:49:53 +0000 |
commit | 13c416cd71b9927b60cc5ea4c9bcecafe472e8c9 (patch) | |
tree | f965e2c92278d3c38dd9fafe70873893e36df263 /vespalib/src/tests/stllike/lrucache.cpp | |
parent | 40add664cca86e6c1591b9503b6ce7f568874388 (diff) |
Change from typedef to using in vespalib C++ code.
Diffstat (limited to 'vespalib/src/tests/stllike/lrucache.cpp')
-rw-r--r-- | vespalib/src/tests/stllike/lrucache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/tests/stllike/lrucache.cpp b/vespalib/src/tests/stllike/lrucache.cpp index 2cc6f2b4ee8..bde42526c48 100644 --- a/vespalib/src/tests/stllike/lrucache.cpp +++ b/vespalib/src/tests/stllike/lrucache.cpp @@ -87,8 +87,8 @@ TEST("testCache") { EXPECT_TRUE(!cache.hasKey(3)); } -typedef std::shared_ptr<std::string> MyKey; -typedef std::shared_ptr<std::string> MyData; +using MyKey = std::shared_ptr<std::string>; +using MyData = std::shared_ptr<std::string>; struct SharedEqual { bool operator()(const MyKey & a, const MyKey & b) { @@ -134,7 +134,7 @@ TEST("testCacheErase") { } TEST("testCacheIterator") { - typedef lrucache_map< LruParam<int, string> > Cache; + using Cache = lrucache_map< LruParam<int, string> >; Cache cache(3); cache.insert(1, "first"); cache.insert(2, "second"); @@ -170,7 +170,7 @@ TEST("testCacheIterator") { } TEST("testCacheIteratorErase") { - typedef lrucache_map< LruParam<int, string> > Cache; + using Cache = lrucache_map< LruParam<int, string> >; Cache cache(3); cache.insert(1, "first"); cache.insert(8, "second"); |