зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1625138 - Part 31: Replace mozilla::RemoveVolatile with std::remove_volatile. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68549 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8d7aa62e32
Коммит
8fae6ee9a8
|
@ -160,24 +160,6 @@ struct RemoveConst<const T> {
|
|||
typedef T Type;
|
||||
};
|
||||
|
||||
/**
|
||||
* RemoveVolatile removes top-level volatile qualifications on a type.
|
||||
*
|
||||
* mozilla::RemoveVolatile<int>::Type is int;
|
||||
* mozilla::RemoveVolatile<volatile int>::Type is int;
|
||||
* mozilla::RemoveVolatile<volatile int*>::Type is volatile int*;
|
||||
* mozilla::RemoveVolatile<int* volatile>::Type is int*.
|
||||
*/
|
||||
template <typename T>
|
||||
struct RemoveVolatile {
|
||||
typedef T Type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct RemoveVolatile<volatile T> {
|
||||
typedef T Type;
|
||||
};
|
||||
|
||||
} /* namespace mozilla */
|
||||
|
||||
#endif /* mozilla_TypeTraits_h */
|
||||
|
|
Загрузка…
Ссылка в новой задаче