source: doc/papers/general/evaluation/cpp-vstack.hpp@ f86c8e5

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new stuck-waitfor-destruct with_gc
Last change on this file since f86c8e5 was f86c8e5, checked in by Aaron Moss <a3moss@…>, 8 years ago

Remove move-operators from C++, C++obj benchmarks for parity

  • Property mode set to 100644
File size: 375 bytes
Line 
1#pragma once
2#include "object.hpp"
3
4class stack {
5 struct node {
6 ptr<object> value;
7 node* next;
8
9 node( const object& v, node* n = nullptr );
10 };
11 node* head;
12
13 void copy(const stack& o);
14public:
15 stack();
16 stack(const stack& o);
17 ~stack();
18 stack& operator= (const stack& o);
19
20 void clear();
21 bool empty() const;
22 void push(const object& value);
23 ptr<object> pop();
24};
Note: See TracBrowser for help on using the repository browser.