~ubuntu-branches/ubuntu/precise/nodejs/precise

« back to all changes in this revision

Viewing changes to deps/v8/src/list-inl.h

  • Committer: Bazaar Package Importer
  • Author(s): Jérémy Lal
  • Date: 2010-08-20 11:49:04 UTC
  • mfrom: (7.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100820114904-lz22w6fkth7yh179
Tags: 0.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
 
129
129
template<typename T, class P>
 
130
template<class Visitor>
 
131
void List<T, P>::Iterate(Visitor* visitor) {
 
132
  for (int i = 0; i < length_; i++) visitor->Apply(&data_[i]);
 
133
}
 
134
 
 
135
 
 
136
template<typename T, class P>
130
137
bool List<T, P>::Contains(const T& elm) {
131
138
  for (int i = 0; i < length_; i++) {
132
139
    if (data_[i] == elm)