diff options
author | Abseil Team <absl-team@google.com> | 2020-10-14 13:48:24 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2020-10-14 22:26:24 (GMT) |
commit | b2cb220eb79270e7139919df6be1d7401be32b0e (patch) | |
tree | 743da8acbba1b7bbb368f0ca4e4bb95c647be8c1 /googletest/docs | |
parent | fb239f0e4c0e73970a55f824eb53bd3ab773056a (diff) | |
download | googletest-b2cb220eb79270e7139919df6be1d7401be32b0e.zip googletest-b2cb220eb79270e7139919df6be1d7401be32b0e.tar.gz googletest-b2cb220eb79270e7139919df6be1d7401be32b0e.tar.bz2 |
Googletest export
Prefer using over typedef.
PiperOrigin-RevId: 337080404
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/advanced.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 9bca074..ecfdaf5 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -1538,7 +1538,7 @@ template <typename T> class FooTest : public ::testing::Test { public: ... - typedef std::list<T> List; + using List = std::list<T>; static T shared_; T value_; }; @@ -1642,7 +1642,7 @@ put the above code in a header file, you can `#include` it in multiple C++ source files and instantiate it multiple times. ```c++ -typedef ::testing::Types<char, int, unsigned int> MyTypes; +using MyTypes = ::testing::Types<char, int, unsigned int>; INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes); ``` |