Vaucanson  1.4.1
static_if_simple< b, T, U > Struct Template Reference

Choose between two types or values depending on a constant Boolean. More...

List of all members.


Detailed Description

template<bool b, typename T, typename U>
struct vcsn::misc::static_if_simple< b, T, U >

Choose between two types or values depending on a constant Boolean.

The classical static_if cannot choose between a type T and void because of its choose () methods which take references. This one is much simpler and require no conditions on types. However, it has no choose method.

Author:
Thomas Claveirole thoma.nosp@m.s.cl.nosp@m.aveir.nosp@m.ole@.nosp@m.lrde..nosp@m.epit.nosp@m.a.fr
See also:
static_if

Definition at line 165 of file static.hh.