• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CORE_FXCRT_FIXED_TRY_ALLOC_ZEROED_DATA_VECTOR_H_
6 #define CORE_FXCRT_FIXED_TRY_ALLOC_ZEROED_DATA_VECTOR_H_
7 
8 #include "core/fxcrt/fixed_size_data_vector.h"
9 
10 // WARNING: Since FX_TryAlloc() can fail, one must always check if a
11 // FixedTryAllocZeroedDataVector is empty after creating one.
12 template <typename T>
13 using FixedTryAllocZeroedDataVector =
14     fxcrt::FixedSizeDataVector<T,
15                                fxcrt::DataVectorAllocOption::kTryInitialized>;
16 
17 #endif  // CORE_FXCRT_FIXED_TRY_ALLOC_ZEROED_DATA_VECTOR_H_
18