/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_BindgenUniquePtr_h #define mozilla_BindgenUniquePtr_h #include #include "mozilla/UniquePtr.h" namespace mozilla { ///
template struct BindgenUniquePtr_Simple { T* mPtr; }; template class BindgenUniquePtr final : public std::unique_ptr> { static_assert(alignof(std::unique_ptr>) == alignof(BindgenUniquePtr_Simple)); static_assert(sizeof(std::unique_ptr>) == sizeof(BindgenUniquePtr_Simple)); }; } // namespace mozilla #endif