ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


char_traits.h

Includes:

Introduction

This is an internal header file, included by other library headers. You should not attempt to use it directly.



Typedefs


_Char_types


template <class _CharT> struct _Char_types { 
    typedef unsigned long int_type; 
    typedef std::streampos pos_type; 
    typedef std::streamoff off_type; 
    typedef std::mbstate_t state_type; 
};  
Discussion

@brief Mapping from character type to associated types.

@note This is an implementation class for the generic version of char_traits. It defines int_type, off_type, pos_type, and state_type. By default these are unsigned long, streamoff, streampos, and mbstate_t. Users who need a different set of types, but who don't need to change the definitions of any function defined in char_traits, can specialize __gnu_cxx::_Char_types * while leaving __gnu_cxx::char_traits alone.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-06-20