Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_filebuf<CharT,Traits>::imbue

      From cppreference.com
      <cpp‎ |io‎ |basic filebuf
       
       
       
       
      protected:
      virtualvoid imbue(conststd::locale& loc)

      Changes the associated locale so that all characters inserted or extracted after this call (and until another call toimbue()) are converted using thestd::codecvt facet ofloc.

      If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the samestd::codecvt facet as the one previously imbued.

      Contents

      [edit]Parameters

      loc - the locale to imbue the stream with

      [edit]Return value

      (none)

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      [virtual]
      reacts to a change of the associated locale
      (virtual protected member function ofstd::basic_streambuf<CharT,Traits>)[edit]
      sets the locale
      (public member function ofstd::basic_ios<CharT,Traits>)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_filebuf/imbue&oldid=57564"

      [8]ページ先頭

      ©2009-2025 Movatter.jp