std::fpos

来自cppreference.com
< cpp‎ | io

 
 
输入/输出库
I / O操纵
C-风格的I / O
缓冲区
原文:
Buffers
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(已弃用)
原文:
Streams
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
抽象
原文:
Abstractions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
文件I / O
原文:
File I/O
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
basic_ifstream
basic_ofstream
basic_fstream
字符串I / O
原文:
String I/O
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
basic_istringstream
basic_ostringstream
basic_stringstream
阵列的I / O
原文:
Array I/O
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
istrstream(已弃用)
ostrstream(已弃用)
strstream(已弃用)
类型
原文:
Types
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
streamoff
streamsize
fpos
Error类的接口
原文:
Error category interface
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
iostream_category(C++11)
io_errc(C++11)
 
在头文件 <ios> 中定义
template< class State >
class fpos;
专业化的类模板std::fpos识别流或在一个文件中的绝对位置。每个对象类型fpos持有的字节流中的位置(通常作为一个私有成员的类型std::streamoff)和当前的移动状态,State(通常是一个类型的值std::mbstate_t
原文:
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).
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
四个专业std::fpos
原文:
Four specializations of std::fpos are provided:
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
在头文件 <ios> 中定义
类型
原文:
Type
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
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>

[编辑] 成员函数

获取/设置值的移位状态
原文:
gets/sets the value of the shift state
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(公共成员函数)
此外,下面的成员函数和运营商必须提供,虽然它的指定,如果他们是成员或非成员.
原文:
In addition, the following member functions and operators must be provided, although it's unspecified if they are members or non-member.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • 构造函数接受一个参数的类型int
    原文:
    A constructor that accepts an argument of type int.
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • 的构造函数接受一个参数的类型std::streamoff。此构造还必须接受特殊的价值std::streamoff(-1):以这种方式构造的std::fpos传回的一些流操作来表示错误.
    原文:
    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.
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • 转换操作符转换fposstd::streamoff的偏移量std::fpos(0)值等于.
    原文:
    A conversion operator that converts fpos to std::streamoff with the value equal to the offset from std::fpos(0).
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • operator==比较两个对象的类型std::fpos和返回值的类型转换为bool
    原文:
    operator== that compares two objects of type std::fpos and returns a value of type convertible to bool
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • operator!=比较两个对象的类型std::fpos和返回值的类型转换为bool
    原文:
    operator!= that compares two objects of type std::fpos and returns a value of type convertible to bool
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • operator+operator+=可以添加std::streamoffstd::fpos
    原文:
    operator+ and operator+= which can add std::streamoff to std::fpos
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • operator-operator-=可以减去std::streamoffstd::fpos
    原文:
    operator- and operator-= which can subtract std::streamoff from an std::fpos
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
  • operator-可以减去两个对象的类型std::fpos产生std::streamoff
    原文:
    operator- which can subtract two objects of type std::fpos producing an std::streamoff
    这段文字是通过 Google Translate 自动翻译生成的。
    您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 另请参阅

表示相对文件/流的位置(偏离FPOS),足以代表任何文件的大小
原文:
represents relative file/stream position (offset from fpos), sufficient to represent any file size
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(typedef)
返回的输出位置指示器
原文:
returns the output position indicator
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(公共成员函数of std::basic_ostream [edit]
设置输出位置指示器
原文:
sets the output position indicator
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(公共成员函数of std::basic_ostream [edit]
获取文件位置指示器
原文:
gets the file position indicator
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(函数) [edit]