| Index: mojo/public/cpp/bindings/lib/template_util.h
|
| diff --git a/mojo/public/cpp/bindings/lib/template_util.h b/mojo/public/cpp/bindings/lib/template_util.h
|
| index bc459f19f222c0a722c722bd1086c449bbd3474e..c4aeb4302fe4979ec91324def2a1b0d822383e98 100644
|
| --- a/mojo/public/cpp/bindings/lib/template_util.h
|
| +++ b/mojo/public/cpp/bindings/lib/template_util.h
|
| @@ -24,6 +24,11 @@ struct IsConst : FalseType {};
|
| template <class T>
|
| struct IsConst<const T> : TrueType {};
|
|
|
| +template <class T>
|
| +struct IsPointer : FalseType {};
|
| +template <class T>
|
| +struct IsPointer<T*> : TrueType {};
|
| +
|
| template <bool B, typename T = void>
|
| struct EnableIf {};
|
|
|
| @@ -92,6 +97,13 @@ struct IsBaseOf {
|
| !IsSame<Base const, void const>::value;
|
| };
|
|
|
| +template <class T>
|
| +struct RemovePointer {};
|
| +template <class T>
|
| +struct RemovePointer<T*> {
|
| + typedef T type;
|
| +};
|
| +
|
| } // namespace internal
|
| } // namespace mojo
|
|
|
|
|