STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
enc_filebuf.h File Reference
#include <fstream>
#include <locale>
#include <ext/codecvt_specializations.h>

Go to the source code of this file.

Functions

namespace __gnu_cxx _GLIBCXX_VISIBILITY (default)
 

Detailed Description

This file is a GNU extension to the Standard C++ Library.

Function Documentation

namespace __gnu_cxx _GLIBCXX_VISIBILITY ( default  )

class enc_filebuf.

37 {
38 _GLIBCXX_BEGIN_NAMESPACE_VERSION
39 
41  template<typename _CharT>
42  class enc_filebuf
43  : public std::basic_filebuf<_CharT, encoding_char_traits<_CharT> >
44  {
45  public:
46  typedef encoding_char_traits<_CharT> traits_type;
47  typedef typename traits_type::state_type state_type;
48  typedef typename traits_type::pos_type pos_type;
49 
50  enc_filebuf(state_type& __state)
51  : std::basic_filebuf<_CharT, encoding_char_traits<_CharT> >()
52  { this->_M_state_beg = __state; }
53 
54  private:
55  // concept requirements:
56  // Set state type to something useful.
57  // Something more than copyconstructible is needed here, so
58  // require default and copy constructible + assignment operator.
59  __glibcxx_class_requires(state_type, _SGIAssignableConcept)
60  };
61 
62 _GLIBCXX_END_NAMESPACE_VERSION
63 } // namespace
#define __glibcxx_class_requires(_a, _b)
Definition: concept_check.h:48