ios_base::iostate

형식 스트림의 상태를 설명 하는 상수입니다.

namespace std {
   class ios_base {
   public:
      typedef implementation-defined-bitmask-type iostate;
      static const iostate badbit;
      static const iostate eofbit;
      static const iostate failbit;
      static const iostate goodbit;
      ...
   };
}

설명

형식을 스트림 상태 정보를 저장할 수 있는 개체를 설명 하는 비트 마스크 형식이입니다.(요소) 개별 플래그 값은 다음과 같습니다.

  • badbit스트림 버퍼의 무결성 손실로 기록 합니다.

  • eofbit한 레코드의 스트림을 추출 하는 동안 파일 끝에.

  • failbit유효한 필드는 스트림에서 추출 실패를 기록 합니다.

또한 유용한 값인 goodbit, 앞에서 언급 한 비트 없음 설정 됩니다 (goodbit 0이 되도록 보장).

요구 사항

헤더: <ios>

네임 스페이스: std

참고 항목

참조

ios_base Class

iostream 프로그래밍

iostreams 규칙