Include dependency graph for char_traits.hh:
This graph shows which files directly or indirectly include this file:
Namespaces | |
namespace | utility |
This file contains the utility::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 utility::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.