Searched defs:remove_reference (Results 1 - 16 of 16) sorted by relevance

/external/clang/test/Analysis/
H A Ddelayed-template-parsing-crash.cpp4 template <class T> struct remove_reference {typedef T type;}; struct
5 template <class T> struct remove_reference<T&> {typedef T type;}; struct
6 template <class T> struct remove_reference<T&&> {typedef T type;}; struct
9 typename remove_reference<T>::type&& move(T&& arg) { // this used to crash
10 return static_cast<typename remove_reference<T>::type&&>(arg);
/external/clang/test/Modules/Inputs/submodules/
H A Dtype_traits.h2 struct remove_reference { struct
7 struct remove_reference<T&> { struct
/external/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/
H A Dp3-0x.cpp39 struct remove_reference { struct
44 struct remove_reference<T&> { struct
49 struct remove_reference<T&&> { struct
54 template<typename T> int &f(typename remove_reference<T>::type&);
55 template<typename T> float &f(typename remove_reference<T>::type&&);
/external/clang/test/SemaCXX/
H A Dwarn-self-move.cpp6 template <class T> struct remove_reference { typedef T type; }; struct in namespace:std::foo
7 template <class T> struct remove_reference<T&> { typedef T type; }; struct in namespace:std::foo
8 template <class T> struct remove_reference<T&&> { typedef T type; }; struct in namespace:std::foo
10 template <class T> typename remove_reference<T>::type &&move(T &&t);
H A Ddiscrim-union.cpp3 template<typename T> struct remove_reference { typedef T type; }; struct
4 template<typename T> struct remove_reference<T&> { typedef T type; }; struct
5 template<typename T> struct remove_reference<T&&> { typedef T type; }; struct
7 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &t) noexcept { return static_cast<T&&>(t); }
8 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &&t) noexcept { return static_cast<T&&>(t); }
9 template<typename T> constexpr typename remove_reference<T>::type &&move(T &&t) noexcept { return static_cast<typename remove_reference<T>::type&&>(t); }
H A Drval-references-examples.cpp28 struct remove_reference { struct
33 struct remove_reference<T&> { struct
38 struct remove_reference<T&&> { struct
43 template <class T> typename remove_reference<T>::type&& move(T&& t) {
44 return static_cast<typename remove_reference<T>::type&&>(t);
47 template <class T> T&& forward(typename remove_reference<T>::type& t) {
51 template <class T> T&& forward(typename remove_reference<T>::type&& t) {
H A Dwarn-redundant-move.cpp8 template <class T> struct remove_reference { typedef T type; }; struct in namespace:std::foo
9 template <class T> struct remove_reference<T&> { typedef T type; }; struct in namespace:std::foo
10 template <class T> struct remove_reference<T&&> { typedef T type; }; struct in namespace:std::foo
12 template <class T> typename remove_reference<T>::type &&move(T &&t);
H A Dwarn-pessmizing-move.cpp7 template <class T> struct remove_reference { typedef T type; }; struct in namespace:std::foo
8 template <class T> struct remove_reference<T&> { typedef T type; }; struct in namespace:std::foo
9 template <class T> struct remove_reference<T&&> { typedef T type; }; struct in namespace:std::foo
11 template <class T> typename remove_reference<T>::type &&move(T &&t);
H A Duninitialized.cpp6 template <class T> struct remove_reference { typedef T type; }; struct in namespace:std::foo
7 template <class T> struct remove_reference<T&> { typedef T type; }; struct in namespace:std::foo
8 template <class T> struct remove_reference<T&&> { typedef T type; }; struct in namespace:std::foo
10 template <class T> typename remove_reference<T>::type&& move(T&& t);
/external/protobuf/src/google/protobuf/stubs/
H A Dtype_traits.h51 // remove_reference
86 template <class T> struct remove_reference;
283 template<typename T> struct remove_reference { typedef T type; }; struct in namespace:google::protobuf::internal
284 template<typename T> struct remove_reference<T&> { typedef T type; }; struct in namespace:google::protobuf::internal
/external/webrtc/webrtc/base/
H A Dtemplate_util.h52 struct remove_reference { struct in namespace:rtc
56 struct remove_reference<T&> { struct in namespace:rtc
60 struct remove_reference<T&&> { struct in namespace:rtc
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp11-1y.cpp68 template<typename T> struct remove_reference { typedef T type; }; struct
69 template<typename T> struct remove_reference<T&> { typedef T type; }; struct
70 template<typename T> decltype(auto) move(T &&t) { return static_cast<typename remove_reference<T>::type&&>(t); }
/external/eigen/Eigen/src/Core/util/
H A DMeta.h37 template<typename T> struct remove_reference { typedef T type; }; struct in namespace:Eigen::internal
38 template<typename T> struct remove_reference<T&> { typedef T type; }; struct in namespace:Eigen::internal
/external/gmock/include/gmock/internal/
H A Dgmock-internal-utils.h347 // remove_reference<T>::type removes the reference from type T, if any.
348 template <typename T> struct remove_reference { typedef T type; }; // NOLINT struct in namespace:testing::internal
349 template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT struct in namespace:testing::internal
370 return const_cast<typename remove_reference<T>::type&>(
371 *static_cast<volatile typename remove_reference<T>::type*>(NULL));
/external/google-breakpad/src/testing/include/gmock/internal/
H A Dgmock-internal-utils.h347 // remove_reference<T>::type removes the reference from type T, if any.
348 template <typename T> struct remove_reference { typedef T type; }; // NOLINT struct in namespace:testing::internal
349 template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT struct in namespace:testing::internal
357 return const_cast<typename remove_reference<T>::type&>(
358 *static_cast<volatile typename remove_reference<T>::type*>(NULL));
/external/clang/test/SemaTemplate/
H A Dtemp_class_spec.cpp85 struct remove_reference { struct
90 struct remove_reference<T&> { struct
94 int remove_ref0[is_same<remove_reference<int>::type, int>::value? 1 : -1];
95 int remove_ref1[is_same<remove_reference<int&>::type, int>::value? 1 : -1];

Completed in 1689 milliseconds