summaryrefslogtreecommitdiff
path: root/src/scope.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-05-08 02:24:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-05-08 02:24:36 -0400
commit04cfa7ab715f66be75d74de93510c62a6cea62a4 (patch)
tree3b6c3843789144560d6840b8facda5b85e731634 /src/scope.h
parent4ec54b86f856c6e85446d065d2940b4244d71b8f (diff)
downloadfork-ledger-04cfa7ab715f66be75d74de93510c62a6cea62a4.tar.gz
fork-ledger-04cfa7ab715f66be75d74de93510c62a6cea62a4.tar.bz2
fork-ledger-04cfa7ab715f66be75d74de93510c62a6cea62a4.zip
Added more iterator methods to call_scope_t
Diffstat (limited to 'src/scope.h')
-rw-r--r--src/scope.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/scope.h b/src/scope.h
index 675fa4e1..30ba6823 100644
--- a/src/scope.h
+++ b/src/scope.h
@@ -241,6 +241,17 @@ public:
args.pop_back();
}
+ typedef value_t::sequence_t::iterator iterator;
+
+ value_t::sequence_t::iterator begin() {
+ return args.begin();
+ }
+ value_t::sequence_t::iterator end() {
+ return args.end();
+ }
+
+ typedef value_t::sequence_t::const_iterator const_iterator;
+
value_t::sequence_t::const_iterator begin() const {
return args.begin();
}