Classes | Namespaces

char_traits.hh File Reference

Generic char_traits declarations. More...

Include dependency graph for char_traits.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  generic_int_type< CharT >
 Generic and under-efficient int_type implementation for char_traits. More...
struct  char_traits< CharT >
 Generic char_traits. More...

Namespaces

namespace  vcsn
 

The main namespace of the Vaucanson library.


namespace  vcsn::misc
 

The namespace for miscellaneous constructs.



Detailed Description

Generic char_traits declarations.

This file contains the vcsn::misc::char_traits declaration. This structure should allow a programmer to specialize std::char_traits for some types with little efforts.

For example, you may write (while in the std namespace):

template <> struct char_traits<foo> : public vcsn::misc::char_traits<foo> { };

To have a generic specialization of char_traits for foo. You may also use this kind of derivation and redifine a few member functions to have a more effective implementation based on the generic version.

If you are looking for allready written specializations, you should look at vaucanson/misc/special_char_traits.hh.

Authors:
Thomas Claveirole <thomas.claveirole@lrde.epita.fr>
See also:
vcsn::misc::char_traits, vaucanson/misc/special_char_traits.hh

Definition in file char_traits.hh.