Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

std::char_traits(3) [debian man page]

std::char_traits< _CharT >(3cxx)										  std::char_traits< _CharT >(3cxx)

NAME
std::char_traits< _CharT > - SYNOPSIS
Inherits __gnu_cxx::char_traits< _CharT >. Inherited by __gnu_cxx::encoding_char_traits< _CharT >. Public Types typedef _CharT char_type typedef _Char_types< _CharT > ::int_type int_type" typedef _Char_types< _CharT > ::off_type off_type" typedef _Char_types< _CharT > ::pos_type pos_type" typedef _Char_types< _CharT > ::state_type state_type" Static Public Member Functions static void assign (char_type &__c1, const char_type &__c2) static char_type * assign (char_type *__s, std::size_t __n, char_type __a) static int compare (const char_type *__s1, const char_type *__s2, std::size_t __n) static char_type * copy (char_type *__s1, const char_type *__s2, std::size_t __n) static constexpr int_type eof () static constexpr bool eq (const char_type &__c1, const char_type &__c2) static constexpr bool eq_int_type (const int_type &__c1, const int_type &__c2) static const char_type * find (const char_type *__s, std::size_t __n, const char_type &__a) static std::size_t length (const char_type *__s) static constexpr bool lt (const char_type &__c1, const char_type &__c2) static char_type * move (char_type *__s1, const char_type *__s2, std::size_t __n) static constexpr int_type not_eof (const int_type &__c) static constexpr char_type to_char_type (const int_type &__c) static constexpr int_type to_int_type (const char_type &__c) Detailed Description template<class _CharT>struct std::char_traits< _CharT > Basis for explicit traits specializations. Note: For any given actual character type, this definition is probably wrong. Since this is just a thin wrapper around __gnu_cxx::char_traits, it is possible to achieve a more appropriate definition by specializing __gnu_cxx::char_traits. See http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt05ch13s03.html for advice on how to make use of this class for unusual character types. Also, check out include/ext/pod_char_traits.h. Definition at line 229 of file char_traits.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::char_traits< _CharT >(3cxx)

Check Out this Related Man Page

std::ostream_iterator< _Tp, _CharT, _Traits >(3)	     Library Functions Manual		  std::ostream_iterator< _Tp, _CharT, _Traits >(3)

NAME
std::ostream_iterator< _Tp, _CharT, _Traits > - SYNOPSIS
Inherits std::iterator< output_iterator_tag, void, void, void, void >. Public Types typedef void difference_type typedef output_iterator_tag iterator_category typedef void pointer typedef void reference typedef void value_type typedef _CharT char_type typedef _Traits traits_type typedef basic_ostream< _CharT, _Traits > ostream_type" Public Member Functions ostream_iterator (ostream_type &__s) ostream_iterator (ostream_type &__s, const _CharT *__c) ostream_iterator (const ostream_iterator &__obj) ostream_iterator & operator* () ostream_iterator & operator++ () ostream_iterator & operator++ (int) ostream_iterator & operator= (const _Tp &__value) Detailed Description template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT>>class std::ostream_iterator< _Tp, _CharT, _Traits > Provides output iterator semantics for streams. This class provides an iterator to write to an ostream. The type Tp is the only type written by this iterator and there must be an operator<<(Tp) defined. Template Parameters: _Tp The type to write to the ostream. _CharT The ostream char_type. _Traits The ostream char_traits. Definition at line 154 of file stream_iterator.h. Member Typedef Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef _CharT std::ostream_iterator< _Tp, _CharT, _Traits >::char_type Public typedef. Definition at line 160 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::difference_type [inherited] Distance between iterators is represented as this type. Definition at line 125 of file stl_iterator_base_types.h. typedef output_iterator_tag std::iterator< output_iterator_tag , void , void , void , void >::iterator_category [inherited] One of the tag types. Definition at line 121 of file stl_iterator_base_types.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef basic_ostream<_CharT, _Traits> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_type Public typedef. Definition at line 162 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::pointer [inherited] This type represents a pointer-to-value_type. Definition at line 127 of file stl_iterator_base_types.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::reference [inherited] This type represents a reference-to-value_type. Definition at line 129 of file stl_iterator_base_types.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> typedef _Traits std::ostream_iterator< _Tp, _CharT, _Traits >::traits_type Public typedef. Definition at line 161 of file stream_iterator.h. typedef void std::iterator< output_iterator_tag , void , void , void , void >::value_type [inherited] The type 'pointed to' by the iterator. Definition at line 123 of file stl_iterator_base_types.h. Constructor &; Destructor Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s) [inline] Construct from an ostream. Definition at line 171 of file stream_iterator.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (ostream_type &__s, const _CharT *__c) [inline] Construct from an ostream. The delimiter string c is written to the stream after every Tp written to the stream. The delimiter is not copied, and thus must not be destroyed while this iterator is in use. Parameters: __s Underlying ostream to write to. __c CharT delimiter string to insert. Definition at line 183 of file stream_iterator.h. template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> std::ostream_iterator< _Tp, _CharT, _Traits >::ostream_iterator (const ostream_iterator< _Tp, _CharT, _Traits > &__obj) [inline] Copy constructor. Definition at line 187 of file stream_iterator.h. Member Function Documentation template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>> ostream_iterator& std::ostream_iterator< _Tp, _CharT, _Traits >::operator= (const _Tp &__value) [inline] Writes value to underlying ostream using operator<<. If constructed with delimiter string, writes delimiter to ostream. Definition at line 193 of file stream_iterator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::ostream_iterator< _Tp, _CharT, _Traits >(3)
Man Page