mCRL2
Loading...
Searching...
No Matches
iota.h
Go to the documentation of this file.
1// Author(s): Wieger Wesselink
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
11
12#ifndef MCRL2_UTILITIES_DETAIL_IOTA_H
13#define MCRL2_UTILITIES_DETAIL_IOTA_H
14
15namespace mcrl2
16{
17
18namespace utilities
19{
20
21namespace detail
22{
23
28template <class Iter, class T>
29void iota(Iter first, Iter last, T value)
30{
31 while (first != last)
32 {
33 *first++ = value++;
34 }
35}
36
37} // namespace detail
38
39} // namespace utilities
40
41} // namespace mcrl2
42
43#endif // MCRL2_UTILITIES_DETAIL_IOTA_H
void iota(Iter first, Iter last, T value)
Generates the sequence value, value + 1, ... and writes it to the sequence [first,...
Definition iota.h:29
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72