Searched refs:RemoveConst (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h795 struct RemoveConst { typedef T type; }; // NOLINT struct in namespace:testing::internal
797 struct RemoveConst<const T> { typedef T type; }; // NOLINT struct in namespace:testing::internal
803 struct RemoveConst<const T[N]> { struct in namespace:testing::internal
804 typedef typename RemoveConst<T>::type type[N];
812 struct RemoveConst<T[N]> { struct in namespace:testing::internal
813 typedef typename RemoveConst<T>::type type[N];
817 // A handy wrapper around RemoveConst that works when the argument
820 typename ::testing::internal::RemoveConst<T>::type
/gem5/ext/googletest/googletest/test/
H A Dgtest_unittest.cc272 using testing::internal::RemoveConst;
7408 // Tests that RemoveConst does not affect non-const types.
7410 CompileAssertTypesEqual<int, RemoveConst<int>::type>();
7411 CompileAssertTypesEqual<char&, RemoveConst<char&>::type>();
7414 // Tests that RemoveConst removes const from const types.
7416 CompileAssertTypesEqual<int, RemoveConst<const int>::type>();
7417 CompileAssertTypesEqual<char[2], RemoveConst<const char[2]>::type>();
7418 CompileAssertTypesEqual<char[2][3], RemoveConst<const char[2][3]>::type>();

Completed in 32 milliseconds