// Copyright 2016 The Crashpad Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef CRASHPAD_CLIENT_SIMPLE_ADDRESS_RANGE_BAG_H_ #define CRASHPAD_CLIENT_SIMPLE_ADDRESS_RANGE_BAG_H_ #include <stdint.h> #include <string.h> #include <type_traits> #include "base/check_op.h" #include "base/logging.h" #include "base/numerics/safe_conversions.h" #include "util/misc/from_pointer_cast.h" #include "util/numeric/checked_range.h" namespace crashpad { //! \brief A bag implementation using a fixed amount of storage, so that it does //! not perform any dynamic allocations for its operations. //! //! The actual bag storage (TSimpleAddressRangeBag::Entry) is POD, so that it //! can be transmitted over various IPC mechanisms. template <size_t NumEntries = 64> class TSimpleAddressRangeBag { … }; //! \brief A TSimpleAddressRangeBag with default template parameters. SimpleAddressRangeBag; static_assert …; } // namespace crashpad #endif // CRASHPAD_CLIENT_SIMPLE_ADDRESS_RANGE_BAG_H_