std::basic_spanbuf<CharT,Traits>:: seekpos
|
protected
:
pos_type seekpos
(
pos_type sp,
std::
ios_base
::
openmode
which
=
|
(C++23 이후) | |
가능한 경우, 다음 포인터를 get 및/또는 put 영역에서
sp
가 가리키는 위치로 재배치합니다.
다음 코드와 동일합니다: return seekoff ( off_type ( sp ) , std:: ios_base :: beg , which ) ; .
목차 |
매개변수
| sp | - |
스트림 위치, 예를 들어
seekoff()
또는
seekpos()
로 얻은 값
|
||||||
| which | - |
입력 시퀀스, 출력 시퀀스 또는 둘 다에 영향을 미치는지 정의합니다. 다음 상수들 중 하나 또는 조합일 수 있습니다:
|
반환값
sp
성공 시 또는
pos_type
(
off_type
(
-
1
)
)
실패 시.
참고 사항
seekpos()
는
std::basic_streambuf::pubseekpos()
에 의해 호출되며, 이는 단일 인자 버전의
std::basic_istream::seekg()
와
std::basic_ostream::seekp()
에 의해 호출됩니다.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |
참고 항목
|
seekpos
를 호출합니다
seekpos
(
)
(
std::basic_streambuf<CharT,Traits>
의
public member function)
|
|
|
[virtual]
|
절대 주소 지정을 사용하여 입력 시퀀스, 출력 시퀀스 또는 둘 모두에서 다음 포인터의 위치를 재설정합니다
(
std::basic_stringbuf<CharT,Traits,Allocator>
의
virtual protected member function)
|
|
[virtual]
|
절대 주소 지정을 사용하여 입력 시퀀스, 출력 시퀀스 또는 둘 모두에서 다음 포인터의 위치를 재설정합니다
(
std::strstreambuf
의
virtual protected member function)
|