名前空間
変種
操作

std::fpos

提供: cppreference.com
< cpp‎ | io

 
 
入力/出力ライブラリ
I / Oのマニピュレータ
CスタイルのI / O
バッファ
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(廃止予定)
ストリーム
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
抽象化
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
ファイルI / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
文字列I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
アレイのI / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(廃止予定)
ostrstream(廃止予定)
strstream(廃止予定)
タイプ
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
エラーカテゴリインターフェース
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
Defined in header <ios>
template< class State >
class fpos;
クラステンプレートの特殊化std::fposストリーム内またはファイル内の絶対位置を識別します。タイプfposの各オブジェクトは、ストリーム内のバイト位置(通常タイプstd::streamoffのプライベートメンバーなど)と、現在のシフト状態、型の値を保持State(通常std::mbstate_t).
Original:
Specializations of the class template std::fpos identify absolute positions in a stream or in a file. Each object of type fpos holds the byte position in the stream (typically as a private member of type std::streamoff) and the current shift state, a value of type State (typically std::mbstate_t).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::fposの4つの専門分野が用意されています
Original:
Four specializations of std::fpos are provided:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <ios>
タイプ
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
streampos std::fpos<std::char_traits<char>::state_type>
u16streampos std::fpos<std::char_traits<char16_t>::state_type>
u32streampos std::fpos<std::char_traits<char32_t>::state_type>
wstreampos std::fpos<std::char_traits<wchar_t>::state_type>

[編集] メンバ関数

シフト状態の値を取得/設定します
Original:
gets/sets the value of the shift state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数)
彼らがメンバーか非会員の場合、何も指定しないのがまた、次のメンバー関数および演算子は、提供されなければならない.
Original:
In addition, the following member functions and operators must be provided, although it's unspecified if they are members or non-member.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • タイプintの引数を受け取るコンストラクタ.
    Original:
    A constructor that accepts an argument of type int.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • タイプstd::streamoffの引数を受け取るコンストラクタ。このコンストラクタはまた、特別な値を受け入れなければなりませんstd::streamoff(-1):このように構成されstd::fposは、エラーを示すために、いくつかのストリーム操作によって返されます.
    Original:
    A constructor that accepts an argument of type std::streamoff. This constructor must also accept the special value std::streamoff(-1): the std::fpos constructed in this manner is returned by some stream operations to indicate errors.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • fposからのオフセットと等しい値を持つstd::streamoffstd::fpos(0)に変換する変換演算子.
    Original:
    A conversion operator that converts fpos to std::streamoff with the value equal to the offset from std::fpos(0).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • タイプoperator==の2つのオブジェクトを比較するとstd::fposに変換された型の値を返しますbool
    Original:
    operator== that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • タイプoperator!=の2つのオブジェクトを比較するとstd::fposに変換された型の値を返しますbool
    Original:
    operator!= that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator+operator+=std::streamoffstd::fposに追加することができる
    Original:
    operator+ and operator+= which can add std::streamoff to std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator-operator-=std::streamoffからstd::fposを減算することができる
    Original:
    operator- and operator-= which can subtract std::streamoff from an std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator-std::fposを生産型std::streamoffの2つのオブジェクトを差し引くことができる
    Original:
    operator- which can subtract two objects of type std::fpos producing an std::streamoff
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[編集] も参照してください

任意のファイルの大きさを表現するのに十分な相対ファイル/ストリームの位置を(FPOSからのオフセット)を表している
Original:
represents relative file/stream position (offset from fpos), sufficient to represent any file size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)
出力位置標識を戻します
Original:
returns the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::basic_ostream) [edit]
出力位置インジケータを設定します
Original:
sets the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::basic_ostream) [edit]
ファイル位置指示子を取得します
Original:
gets the file position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数) [edit]