1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/glue/nsTArrayForwardDeclare.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef nsTArrayForwardDeclare_h__ 1.11 +#define nsTArrayForwardDeclare_h__ 1.12 + 1.13 +// 1.14 +// This simple header file contains forward declarations for the TArray family 1.15 +// of classes. 1.16 +// 1.17 +// Including this header is preferable to writing 1.18 +// 1.19 +// template<class E> class nsTArray; 1.20 +// 1.21 +// yourself, since this header gives us flexibility to e.g. change the default 1.22 +// template parameters. 1.23 +// 1.24 + 1.25 +#include <stdint.h> 1.26 + 1.27 +template<class E> 1.28 +class nsTArray; 1.29 + 1.30 +template<class E> 1.31 +class FallibleTArray; 1.32 + 1.33 +template<class E, uint32_t N> 1.34 +class nsAutoTArray; 1.35 + 1.36 +template<class E, uint32_t N> 1.37 +class AutoFallibleTArray; 1.38 + 1.39 +#define InfallibleTArray nsTArray 1.40 +#define AutoInfallibleTArray nsAutoTArray 1.41 + 1.42 +#endif