Compartilhar via


basic_string::traits_type

A type for the character traits of the elements stored in a string.

typedef Traits traits_type;

Remarks

The type is a synonym for the second template parameter Traits.

For type string, it is equivalent to char_traits<char>.

Example

See the example for copy for an example of how to declare and use traits_type.

Requirements

Header: <string>

Namespace: std

See Also

Reference

basic_string Class

Other Resources

basic_string Members