// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_ #define FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_ namespace impeller { template class BackendCast { public: static Sub& Cast(Base& base) { return reinterpret_cast(base); } static const Sub& Cast(const Base& base) { return reinterpret_cast(base); } static Sub* Cast(Base* base) { return reinterpret_cast(base); } static const Sub* Cast(const Base* base) { return reinterpret_cast(base); } }; } // namespace impeller #endif // FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_