Vaucanson
1.4.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
vaucanson
algorithms
is_useless.hxx
1
// is_useless.hxx: this file is part of the Vaucanson project.
2
//
3
// Vaucanson, a generic library for finite state machines.
4
//
5
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 The Vaucanson Group.
6
//
7
// This program is free software; you can redistribute it and/or
8
// modify it under the terms of the GNU General Public License
9
// as published by the Free Software Foundation; either version 2
10
// of the License, or (at your option) any later version.
11
//
12
// The complete GNU General Public Licence Notice can be found as the
13
// `COPYING' file in the root directory.
14
//
15
// The Vaucanson Group consists of people listed in the `AUTHORS' file.
16
//
17
#ifndef VCSN_ALGORITHMS_IS_USELESS_HXX
18
# define VCSN_ALGORITHMS_IS_USELESS_HXX
19
20
# include <
vaucanson/algorithms/is_useless.hh
>
21
# include <
vaucanson/algorithms/trim.hh
>
22
23
# include <vaucanson/automata/concept/automata_base.hh>
24
25
# include <algorithm>
26
27
namespace
vcsn {
28
29
template
<
typename
A,
typename
AI>
30
bool
31
is_useless
(
const
Element<A, AI>
& a)
32
{
33
return
trim
(a).states().size() == 0;
34
}
35
36
}
// vcsn
37
38
#endif // ! VCSN_ALGORITHMS_IS_USELESS_HXX
Generated on Sat Jul 14 2012 18:46:40 for Vaucanson by
1.8.1.1