名前空間
変種
操作

「cpp/string/char traits/eof」の版間の差分

提供: cppreference.com
< cpp‎ | string‎ | char traits
 
7行: 7行:
 
}}
 
}}
 
{{dcl | since=c++11 |
 
{{dcl | since=c++11 |
static constexpr int_type eof();
+
static constexpr int_type eof() ;
 
}}
 
}}
 
{{dcl rev end}}
 
{{dcl rev end}}
21行: 21行:
 
===戻り値===
 
===戻り値===
 
{{tt|char_type}} 型の有効ないかなる値とも同等でない値。
 
{{tt|char_type}} 型の有効ないかなる値とも同等でない値。
 
===例外===
 
{{rev begin}}
 
{{rev | until=c++11 | (なし)}}
 
{{rev | since=c++11 | {{unreviewed noexcept}}}}
 
{{rev end}}
 
  
 
===計算量===
 
===計算量===
36行: 30行:
 
{{dsc end}}
 
{{dsc end}}
  
[[de:cpp/string/char traits/eof]]
+
deenesfritptruzh
[[en:cpp/string/char traits/eof]]
+
[[es:cpp/string/char traits/eof]]
+
[[fr:cpp/string/char traits/eof]]
+
[[it:cpp/string/char traits/eof]]
+
[[pt:cpp/string/char traits/eof]]
+
[[ru:cpp/string/char traits/eof]]
+
[[zh:cpp/string/char traits/eof]]
+

2019年2月21日 (木) 15:29時点における最新版

static int_type eof();
(C++11未満)
static constexpr int_type eof() noexcept;
(C++11以上)

char_type 型の有効ないかなる値とも同等でない値を返します。

形式的には、 すべての値 c について X::eq_int_type(e, X::to_int_type(c))false であるような値 e を返します。

目次

[編集] 引数

(なし)

[編集] 戻り値

char_type 型の有効ないかなる値とも同等でない値。

[編集] 計算量

一定。

[編集] 関連項目

[静的]
文字が eof 値かどうか調べます
(パブリック静的メンバ関数) [edit]