名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | string‎ | char traits
(Fix some translations)
1行: 1行:
{{tr_note}}
 
 
{{cpp/string/char_traits/title|eof}}
 
{{cpp/string/char_traits/title|eof}}
 
{{cpp/string/char_traits/navbar}}
 
{{cpp/string/char_traits/navbar}}
 
{{dcl begin}}
 
{{dcl begin}}
 +
 
{{dcl | until=c++11 |
 
{{dcl | until=c++11 |
int_type eof();
+
int_type eof();
 
}}
 
}}
 
{{dcl | since=c++11 |
 
{{dcl | since=c++11 |
constexpr int_type eof();
+
constexpr int_type eof();
 
}}
 
}}
 +
 
{{dcl end}}
 
{{dcl end}}
  
Returns a value not equivalent to any value of type {{tt|char_type}}.
+
{{tt|char_type}}
  
===パラメータ===
+
 +
 
 +
======
 
(なし)
 
(なし)
  
===値を返します===
+
======
A value not equivalent to any value of type {{tt|char_type}}.
+
{{tt|char_type}}
  
 
===例外===
 
===例外===
{{noexcept}}
+
{{
 +
 +
noexcept
 +
}}
  
===複雑性===
+
======
{{tr|定数.|Constant.}}
+
  
===参照===
+
======
 
{{dsc begin}}
 
{{dsc begin}}
 
{{dsc inc | cpp/string/char_traits/dsc not_eof}}
 
{{dsc inc | cpp/string/char_traits/dsc not_eof}}

2018年6月15日 (金) 19:07時点における版

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

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

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

目次

引数

(なし)

戻り値

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

例外

(なし) (C++11未満)
noexcept 指定:  
noexcept
  
(C++11以上)

計算量

一定。

関連項目

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