summaryrefslogtreecommitdiff
path: root/src/context/cdlist_forward.h
blob: 993a480849490fde5df10fbbf7daf2fb08ac55f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/******************************************************************************
 * Top contributors (to current version):
 *   Tim King, Morgan Deters, Mathias Preiner
 *
 * This file is part of the cvc5 project.
 *
 * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
 * in the top-level source directory and their institutional affiliations.
 * All rights reserved.  See the file COPYING in the top-level source
 * directory for licensing information.
 * ****************************************************************************
 * This is a forward declaration header to declare the
 * CDList<> template
 *
 * It's useful if you want to forward-declare CDList<> without including the
 * full cdlist.h or cdlist_context_memory.h header, for example, in a public
 * header context, or to keep compile times low when only a forward declaration
 * is needed.
 *
 * Note that all specializations of the template should be listed
 * here as well, since different specializations are defined in
 * different headers (cdlist.h and cdlist_context_memory.h).
 * Explicitly declaring both specializations here ensure that if you
 * define one, you'll get an error if you didn't include the correct
 * header (avoiding different, incompatible instantiations in
 * different compilation units).
 */

#include "cvc5_public.h"

#ifndef CVC5__CONTEXT__CDLIST_FORWARD_H
#define CVC5__CONTEXT__CDLIST_FORWARD_H

#include <memory>

/// \cond internals

namespace cvc5 {
namespace context {

template <class T>
class DefaultCleanUp {
public:
 inline void operator()(T* t CVC5_UNUSED) const {}
};

template <class T, class CleanUp = DefaultCleanUp<T>, class Allocator = std::allocator<T> >
class CDList;

/// \endcond

}  // namespace context
}  // namespace cvc5

#endif /* CVC5__CONTEXT__CDLIST_FORWARD_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback