blob: 4d40cdfc12dc27af950bf4bcb0cbd494bf03f2c9 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace mojo {
// Default traits for a binding's implementation reference type. This
// corresponds to a raw pointer.
template <typename Interface>
struct RawPtrImplRefTraits {
using PointerType = Interface*;
static bool IsNull(PointerType ptr) { return !ptr; }
static Interface* GetRawPointer(PointerType* ptr) { return *ptr; }
} // namespace mojo