source: libcfa/src/algorithms/range_iterator.hfa @ 58b2638

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since 58b2638 was 58b2638, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Added range_iterator, it now compiles.

  • Property mode set to 100644
File size: 614 bytes
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 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// range_iterator.hfa --
8//
9// Author           : Thierry Delisle
10// Created On       : Tue Nov 30 13:06:22 2021
11// Last Modified By :
12// Last Modified On :
13// Update Count     :
14//
15
16generator RangeIter {
17        const char * text;
18        int com;
19        int _start;
20        int _stop;
21};
22
23void ?{}(RangeIter & this, const char * text) {
24        this.text = text;
25}
26
27static inline bool moveNext(RangeIter & this) { resume(this); return this.com > 0; }
Note: See TracBrowser for help on using the repository browser.