source: src/AST/Vector.hpp @ daf4c89

Last change on this file since daf4c89 was bc899d6, checked in by Andrew Beach <ajbeach@…>, 2 years ago

Added ast::vector as a short hand and used it in one file as a test.

  • Property mode set to 100644
File size: 786 bytes
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// Vector.hpp -- Short hand for vector of ast pointers.
8//
9// Author           : Andrew Beach
10// Created On       : Thu Oct 20  9:46:00 2022
11// Last Modified By : Andrew Beach
12// Last Modified On : Thu Oct 20 10:16:00 2022
13// Update Count     : 0
14//
15
16#pragma once
17
18#include <vector>
19
20#include "AST/Node.hpp"
21
22namespace ast {
23
24/// Short hand for a vector of ast::ptr types.
25template<typename T, typename Alloc = std::allocator<ptr<T>> >
26using vector = std::vector<ptr<T>, Alloc>;
27
28}
29
30// Local Variables: //
31// tab-width: 4 //
32// mode: c++ //
33// compile-command: "make install" //
34// End: //
Note: See TracBrowser for help on using the repository browser.