Standard library header <istream> - cppreference.com
Standard library header <istream> - cppreference.com
This header is part of the input/output library. [edit] Synopsis namespace std { template > class basic_istream; using istream = basic_istream ; using wistream = basic_istream ; template > class basic_iostream; using iostream = basic_iostream ; us
en.cppreference.com
종류
istream == basic_istream<char>
wistream == basic_istream<wchar_t>
iostream == basic_iostream<char>
wiostream == basic_iostream<wchar_t>
연산자
>>
조작자
ws : 공백을 소모
**basic_istream<CharT, Traits> 는 추정으로 istream의 종류라고 추측 중. 하지만 정확한 의미 파악은 필요함
- CharT == char_type
- Traits == traits_type 종류 중 하나 char_traits<CharT>
포맷이 정해지지 않은 입력
streamsize gcount() const;
get(char_type& c);
get(char_type* s, streamsize n);
get(char_type* s, streamsize n, char_type delim);
get(basic_streambuf<char_type,Traits>& sb);
get(basic_streambuf<char_type,Traits>& sb, char_type delim);
getline(char_type* s, streamsize n);
getline(char_type* s, streamsize n, char_type delim);
ignore(streamsize n = 1, int_type delim = Traits::eof());
int_type peek();
read(char_type* s, streamsize n);
streamsize readsome(char_type* s, streamsize n);
putback(char_type c);
unget();
int sync();
pos_type tellg();
seekg(pos_type);
seekg(off_type, ios_base::seekdir);
'개발자로 > Cpp' 카테고리의 다른 글
Cpp, std::ws (0) | 2022.08.06 |
---|---|
Cpp, UnformattedInputFunction (0) | 2022.08.06 |
Cpp, string 헤더에 선언되어 있는 getline 함수 (0) | 2022.08.05 |
Cpp, sstream 헤더를 활용한 getline 함수 (0) | 2022.08.05 |
Cpp, using 문 (0) | 2022.08.04 |